在VC ++中将VS2008移植到VS2012问题 [英] Porting VS2008 to VS2012 Issue in VC++
问题描述
将VS2008移植到VS2012
在VS2008中成功构建
但我收到链接器错误如下:
任何人都可以帮助解决这个问题
创建库../../WIN32/dbqmsv/nt-i386/RELEASE/tdqmview.lib和对象。
./../WIN32/dbqmsv/nt- i386 / RELEASE / tdqmview.exp
qmsdbms.obj:错误LNK2019:未解析的外部符号" void __cdecl std :: _ Xbad
_alloc(void)" (?_Xbad_alloc @ std @@ YAXXZ)在函数char * __cdecl s
td :: _ Allocate< char>(unsigned int,char *)中引用(?? $ _ Allocate @ D @ std @@ YAPADIPAD @ Z)
qmsdbms.obj:错误LNK2019:未解析的外部符号" void __cdecl std :: _ Xlen
gth_error (char const *) (?_Xlength_error @std @@ YAXPBD @ Z)在函数中引用
" public:bool __thiscall std :: basic_string< char,struct std :: char_traits< char>,cl
ass std :: allocator< char> > :: _ Grow(unsigned int,bool)" (?_Grow @?$ basic_string @ DU?
$ char_traits @ D @ std @@ V?$ allocator @ D @ 2 @@ std @@ QAE_NI_N @ Z)
qmsdbms.obj:错误LNK2019:未解析的外部符号" void __cdecl std :: _ Xout
_of_range(char const *)" (?_Xout_of_range @ std @@ YAXPBD @ Z)在函数中引用
" public:void __thiscall std :: basic_string< char,struct std :: char_traits< char>,cl
ass std :: allocator< char> > :: _ Xran(void)const" (?_Xran @?$ basic_string @ DU?$ char_t
raits @ D @ std @@ V?$ allocator @ D @ 2 @@ std @@ QBEXXZ)
qmsdbms.obj:错误LNK2019:未解析的外部符号" char const * __cdecl st
d :: _ Syserror_map(int)" (?_Syserror_map @std @@ YAPBDH @ Z)在函数中引用了pu
blic:virtual class std :: error_condition __thiscall std :: _ System_error_category:
:default_error_condition( int)const (?default_error_condition @ _System_error_cat
egory @ std @@ UBE?AVerror_condition @ 2 @ H @ Z)
qmsdbms.obj:错误LNK2019:未解析的外部符号" char const * __cdecl st
d :: _ Winerror_map(int)" (?_Winerror_map @std @@ YAPBDH @ Z)在函数pu
blic:virtual class std :: basic_string< char,struct std :: char_traits< char>,class s
td :: allocator< char> > __thiscall std :: _ System_error_category :: message(int)const
" (?message @ _System_error_category @std @@ UBE?AV?$ basic_string @ DU?$ char_traits @ D @ s
td @@ V?$ allocator @ D @ 2 @@ 2 @ H @ Z )
../../WIN32/dbqmsv/nt-i386/RELEASE/tdqmview.exe:致命错误LNK1120:5 unresol
ved externals
请让我知道我哪里错了。
问候,
Uday
Hi,
Porting VS2008 to VS2012
successfully built in VS2008
but I get linker error as below:
Can anyone help on this issue
Creating library ../../WIN32/dbqmsv/nt-i386/RELEASE/tdqmview.lib and object .
./../WIN32/dbqmsv/nt-i386/RELEASE/tdqmview.exp
qmsdbms.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xbad
_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) referenced in function "char * __cdecl s
td::_Allocate<char>(unsigned int,char *)" (??$_Allocate@D@std@@YAPADIPAD@Z)
qmsdbms.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen
gth_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) referenced in function
"public: bool __thiscall std::basic_string<char,struct std::char_traits<char>,cl
ass std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QAE_NI_N@Z)
qmsdbms.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xout
_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) referenced in function
"public: void __thiscall std::basic_string<char,struct std::char_traits<char>,cl
ass std::allocator<char> >::_Xran(void)const " (?_Xran@?$basic_string@DU?$char_t
raits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
qmsdbms.obj : error LNK2019: unresolved external symbol "char const * __cdecl st
d::_Syserror_map(int)" (?_Syserror_map@std@@YAPBDH@Z) referenced in function "pu
blic: virtual class std::error_condition __thiscall std::_System_error_category:
:default_error_condition(int)const " (?default_error_condition@_System_error_cat
egory@std@@UBE?AVerror_condition@2@H@Z)
qmsdbms.obj : error LNK2019: unresolved external symbol "char const * __cdecl st
d::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z) referenced in function "pu
blic: virtual class std::basic_string<char,struct std::char_traits<char>,class s
td::allocator<char> > __thiscall std::_System_error_category::message(int)const
" (?message@_System_error_category@std@@UBE?AV?$basic_string@DU?$char_traits@D@s
td@@V?$allocator@D@2@@2@H@Z)
../../WIN32/dbqmsv/nt-i386/RELEASE/tdqmview.exe : fatal error LNK1120: 5 unresol
ved externals
Please let me know where i am going wrong.
Regards,
Uday
推荐答案
_Allocate @ D @ std @@ YAPADIPAD @ Z)
qmsdbms.obj:错误LNK2019:未解析的外部符号" void __cdecl std: :_Xlen
gth_error(char const *)" (?_Xlength_error @std @@ YAXPBD @ Z)在函数中引用
" public:bool __thiscall std :: basic_string< char,struct std :: char_traits< char>,cl
ass std :: allocator< char> > :: _ Grow(unsigned int,bool)" (?_Grow @?
_Allocate@D@std@@YAPADIPAD@Z)
qmsdbms.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen
gth_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) referenced in function
"public: bool __thiscall std::basic_string<char,struct std::char_traits<char>,cl
ass std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?
basic_string @ DU?
basic_string@DU?
char_traits @ D @ std @@ V?
char_traits@D@std@@V?
这篇关于在VC ++中将VS2008移植到VS2012问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!