这可能与通用CRT重构有关吗?

时间:2016-05-04 21:29:48

标签: c++ visual-studio-2015 msvcrt crt

我正在将我的项目升级到VS 2015,并且仅在Debug | x64配置中,当我的静态库(XXXXX.lib)被DLL使用时,我遇到了几个链接器错误:

6>XXXXX.lib(stdafx.obj) : error LNK2019: unresolved external symbol _vscwprintf referenced in function "public: static void __cdecl ATL::CTrace::TraceV(char const *,int,unsigned int,unsigned int,wchar_t const *,char *)" (?TraceV@CTrace@ATL@@SAXPEBDHIIPEB_WPEAD@Z)

6>XXXXX.lib(stdafx.obj) : error LNK2019: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::_System_error_category::message(int)const " (?message@_System_error_category@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)

正如您所看到的,引用功能和未解析的外部功能都来自Microsoft自己的库。

知道会发生什么事吗?

0 个答案:

没有答案