Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

Your are building for Win RT target. These functions arent available for that platform.

Check the project settings and the libraries...
 
Share this answer
 
Comments
janaswamy uday 3-Sep-13 7:38am    
What do you mean by Win RT target. Still getting the same linker errors. Is there are any
procedures to work on Win RT issue in VS2012.
KarstenK 3-Sep-13 8:26am    
Check the platfrom tool set in the project settings.

Are you building an Windows 8 App?
janaswamy uday 3-Sep-13 9:26am    
We are building in VC++2012. So we have now VC++2012.
This Error is displayed when migrating from VC++2008 to VC++2012.
KarstenK 3-Sep-13 9:48am    
you should carefully check the project settings. Somehow your settings will build a Windows 8 App.

And that doesnt work. Or you remove the functions calls which are the problems: always the first call of the linker errors.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900