XiZi's Blog

快速解决 VS2010 _ITERATOR_DEBUG_LEVEL doesn't match error.

在Visual Studio 2010中,当你链接一个工程时,如果Debug和Release不匹配就会遇到错误:
 
_iterator_debug_level value '0' doesn't match value '2'
 
_iterator_debug_level value '2' doesn't match value '0'
 
检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项
 
 
最简单的解决办法就是:
 
Project Pages / Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions.
 
Add "_ITERATOR_DEBUG_LEVEL=0" in there worked.
 
方法2:
 
预定义 _ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH for C and CUDA Preprocessor Definition
使用/MDd编译 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
link打开生成Debug信息 <GenerateDebugInformation>true</GenerateDebugInformation>




Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee