且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误LNK2001未解析的外部符号:从visual studio 2008迁移到visual studio 2015时

更新时间:2023-09-17 11:41:34

您好,


可能与此处解决的错误相同:
https://social.msdn.microsoft.com/Forums/vstudio / en-US / 28947f43-e7de-42fa-9aa5-44084beac333 / linking-problems-with-stl-from-vs2008-to-vs2010?forum = vcgeneral


问候,Guido


Hi,  

   I have getting below error while compiling my project in visual studio 2015. Could you please help in resolving this error?

Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "public: static unsigned int const std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::npos" (?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2IB) XXX D:\jdf\vs2015_compilation\CFS_Release\core\src\utcfsstring\XXX.obj 1

Regards

Kunal

Hello,

Maybe it is the same error as solved here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/28947f43-e7de-42fa-9aa5-44084beac333/linking-problems-with-stl-from-vs2008-to-vs2010?forum=vcgeneral

Regards, Guido