War*_*tin 5 c++ mfc linker-errors visual-studio-2010 visual-studio-2012
我的项目在VS 2010中的调试和发布模式下编译并运行正常.今天我尝试用VS 2012编译它,我收到了这个错误:
1> Generating Code...
1>pcrecppd.lib(pcrecpp.obj) : error LNK2038: mismatch detected for '_MSC_VER':
value '1600' doesn't match value '1700' in NamesEditorDlg.obj
Run Code Online (Sandbox Code Playgroud)
我在代码中搜索"_MSC_VER"但我找不到任何匹配项.我也找不到"1600"或"1700".
所以我想知道如何解决这个问题.
看起来你在vc2012中使用vc2010中的.lib(猜测它看起来像PCRE库).您需要使用DLL重新编译所有.libs或运行时链接(即LoadLibrary,GetProcAddress等).