Visual Studio 2012到2017迁移后的链接错误

时间:2019-03-31 19:03:17

标签: windows visual-studio visual-c++

我将项目从Visual Studio 2012迁移到2017。对于解决方案中的所有项目,我都选择Windows sdk V 10.0.17763.0和平台工具集作为Visual Studio 2017(v141)。并以WINVER 0x0601为目标。除此之外,我还没有做任何更改。当我编译所有项目时,在链接过程中都出错。大约有400个错误。我正在链接属于其他项目的静态库文件的源文件(添加在其他include目录中) )。看起来大多数错误都来自属于该项目的文件。我什至更改了该项目的工具集/ SDK设置。我非常困惑。无法找出此错误的根本原因。

错误LNK2019无法解析的外部符号“ void __cdecl RemoveRefForStatic(class GlobalSignalSourceInfo *)”(?? $ RemoveRefForStatic @ VGlobalSignalSourceInfo @@@@ YAXPAVGlobalSignalSourceInfo @@@ Z)在函数“ public:__thiscall ATL :: CAtlComModule :: CAtlComModule(: void)“(?? 0CAtlComModule @ ATL @@ QAE @ XZ)CSMediaPlayer D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CEF \ COMInterface D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CEF \ COMInterface \ CSMediaEngine .lib(StdAfx.obj)

错误LNK2019无法解析的外部符号“ void cdecl AddRefForStatic(class GlobalSignalSourceInfo *)”(?? $ AddRefForStatic @ VGlobalSignalSourceInfo @@@@@ YAXPAVGlobalSignalSourceInfo @@@ Z)在函数“ long __stdcall ATL :: AtlWinModuleTerm(struct ATL :: _ ATL_WIN_MODULE70 *,结构HINSTANCE *)“(?AtlWinModuleTerm @ ATL @@ YGJPAU_ATL_WIN_MODULE70 @ 1 @ PAUHINSTANCE __ @@@ Z)CSMediaPlayer D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CE :\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CEF \ COMInterface \ CSMediaEngine.lib(StdAfx.obj)1

错误LNK2001无法解析的外部符号“ void __cdecl RemoveRefForStatic(class GlobalSignalSourceInfo *)”(?? $ RemoveRefForStatic @ VGlobalSignalSourceInfo @@@@ YAXPAVGlobalSignalSourceInfo @@@ Z)CSMediaPlayer D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CE \ COMInterface D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CEF \ COMInterface \ CSLib.lib(criticalsection.obj)1

错误LNK1120 18无法解析的外部CSMediaPlayer D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CEF \ COMInterface \ Debug D:\ CoolSign \ trunk \ Development \ common \ 2008 \ CSMediaPlayer_CEF \ COMInterface \ Debug \ CSMediaPlayer.dll 1

0 个答案:

没有答案