将VC2008迁移到VC2012链接器错误。 [英] Migrating VC2008 to VC2012 Linker Errors.

查看:202
本文介绍了将VC2008迁移到VC2012链接器错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在将VC ++ 2008转换为VC2012项目时遇到链接器错误。





错误LNK2019:未解析的外部符号void __cdecl std :: _ Xbad_alloc(void)(?_ Xbad_alloc @ std @@ YAXXZ)在函数public:void __thiscall std中引用:: basic_string< char,struct>,class std :: allocator< char>> :: _ Copy(unsigned int,unsigned int)(?_ Copy @?$ basic_string @ DU?$ char_traits @ D @ std @@ V? $ allocator @ D @ 2 @@ std @@ QAEXII @ Z)

1> qmsdbms.obj:错误LNK2019:未解析的外部符号void __cdecl std :: _ Xlength_error(char const *)(? _Xlength_error @std @@ YAXPBD @ Z)在函数public:bool __thiscall std :: basic_string< char,struct>,class std :: allocator< char>> :: _ Grow(unsigned int,bool)中引用(?_Grow) @?$ basic_string @ DU?$ char_traits @ D @ std @@ V?$ allocator @ D @ 2 @@ std @@ QAE_NI_N @ Z)




1> qmsdbms.obj:错误LNK2019:未解析的外部符号void __cdecl std :: _ Xout_of_range(ch ar const *)(?_Xout_of_range @ std @@ YAXPBD @ Z)在函数public:class std :: basic_string< char,struct>,class std :: allocator< char>中引用> &安培; __thiscall std :: basic_string< char,struct>,class std :: allocator< char> > :: assign(class std :: basic_string< char,struct>,class std :: allocator< char>> const&,unsigned int,unsigned int)(?assign @?$ basic_string @ DU?$ char_traits @ D @ std @@ V?$ allocator @ D @ 2 @@ std @@ QAEAAV12 @ ABV12 @ II @ Z)



1> qmsdbms.obj:错误LNK2019:未解析的外部符号char const * __cdecl std :: _ Syserror_map(int)(?_Syserror_map @std @@ YAPBDH @ Z)在函数public:virtual class std :: error_condition __thiscall std中引用:: _ System_error_category :: default_error_condition(int)const(?default_error_condition @ _System_error_category @std @@ UBE?AVerror_condition @ 2 @ H @ Z)





1> qmsdbms.obj:错误LNK2019:未解析的外部符号char const * __cdecl std :: _ Winerror_map(int)(?_Winerror_map @ std @@ YAPBDH @ Z)在函数中引用public:virtual class std :: basic_string< char,struct> ;, class std :: allocator< char> > __thiscall std :: _ System_error_category :: message(int)const(?message @ _System_error_category @std @@ UBE?AV?$ basic_string @ DU?$ char_traits @ D @ std @@ V?$ allocator @ D @ 2 @@ 2 @H @ Z)





请告诉我我的错误。



谢谢,

Uday

解决方案

basic_string @ DU?


< blockquote> char_traits @D @std @@ V?


allocator @ D @ 2 @@ std @@ QAEXII @ Z)

1> qmsdbms.obj:错误LNK2019:未解析的外部符号void __cdecl std :: _ Xlength_error(char const *)(?_ Xlength_error @std @@ YAXPBD @ Z)在函数public:bool __thiscall std :: basic_string< char,struct>,class std中引用::分配器<炭> > :: _ Grow(unsigned int,bool)(?_Grow @?


Hi All,

I am getting Linker Errors when Converting my VC++2008 to VC2012 Project.


error LNK2019: unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) referenced in function "public: void __thiscall std::basic_string<char,struct>,class std::allocator<char> >::_Copy(unsigned int,unsigned int)" (?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXII@Z)
1>qmsdbms.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) referenced in function "public: bool __thiscall std::basic_string<char,struct>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE_NI_N@Z)


1>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: class std::basic_string<char,struct>,class std::allocator<char> > & __thiscall std::basic_string<char,struct>,class std::allocator<char> >::assign(class std::basic_string<char,struct>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z)

1>qmsdbms.obj : error LNK2019: unresolved external symbol "char const * __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPBDH@Z) referenced in function "public: virtual class std::error_condition __thiscall std::_System_error_category::default_error_condition(int)const " (?default_error_condition@_System_error_category@std@@UBE?AVerror_condition@2@H@Z)


1>qmsdbms.obj : error LNK2019: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPBDH@Z) referenced in function "public: virtual class std::basic_string<char,struct>,class std::allocator<char> > __thiscall std::_System_error_category::message(int)const " (?message@_System_error_category@std@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)


Please let me know what i am doing wrong.

Thanks,
Uday

解决方案

basic_string@DU?


char_traits@D@std@@V?


allocator@D@2@@std@@QAEXII@Z)
1>qmsdbms.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) referenced in function "public: bool __thiscall std::basic_string<char,struct>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?


这篇关于将VC2008迁移到VC2012链接器错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆