【问题】
error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2””
【可能的原因】
Release版本引用了版本的库 或 Debug版本引用了Release版本的库
VS2010中,Debug模式下默认值为2,Release的模式的默认值为0 。
【解决】
更改项目属性:
项目-〉属性-〉配置属性-〉C/C++ -〉预处理器-〉预处理定义 -〉添加“_ITERATOR_DEBUG_LEVEL=0”
或
Project Pages / Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions