我已经阅读了很多我的问题的解决方案但没有帮助.我试过干净,重建.重新安装了视觉2010并从专业变为终极.但我仍然不知道为什么我有这个错误.我的项目看起来像这样:1个Exe解决方案来测试我的静态库.1 Dll Solution静态库.转换为dll的代码使用名为ClassificationFramework的1 lib函数.我提供这个lib作为头和cpp基本上是源代码.在Exe解决方案中,我链接了我生成的库+其他一些库来运行它+ ClassificationFramework.dll.当我使用Release时,一切正常,但是当我改为Debug时(因为我想调试一些东西,我厌倦了在发布模式下跳过调试器)我得到了这个:
2>Link:
2> ClassificationFramework.lib(SampleClass.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
2>ClassificationFramework.lib(SampleClass.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
2>ClassificationFramework.lib(SampleNamesSet.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
2>ClassificationFramework.lib(SampleSet.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj …Run Code Online (Sandbox Code Playgroud)