本文介绍了如何在VS2010中设置_ITERATOR_DEBUG_LEVEL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用另一个供应商的库,它显然是用错误的标志编译的,即32位调试模式下的_ITERATOR_DEBUG_LEVEL = 0。虽然我已经提交了一个错误报告,我需要一个中间的解决方案。我们不使用stl自己,所以我可以自由地更改使用该库的子项目的这个标志。但我不知道如何做到这一点。我试过的没有工作:

We are using a library by another vendor, which apparently was compiled with the wrong flags, namely _ITERATOR_DEBUG_LEVEL = 0 in 32bit-Debug-mode. While I have already filed a bug report with them, I need an intermediate solution. We do not use stl ourselves, so I am free to change this flag for the subproject that uses said library. But I cannot figure out how to do so. What I tried an didn't work:

/D_ITERATOR_DEBUG_LEVEL=0
> LINK : warning LNK4044: unrecognized option '/D_ITERATOR_DEBUG_LEVEL=0'; ignored 

#define _ITERATOR_DEBUG_LEVEL 0
> Nothing happens

什么是正确的语法或选项,使项目无需检查迭代器编译? >

What's the proper syntax or option to get the project to compile without checked iterators?

推荐答案

找到解决方案。

项目页/配置属性/ C,C ++ /预处理器/预处理器定义。

Project Pages / Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions.

加入_ITERATOR_DEBUG_LEVEL = 0。

Add "_ITERATOR_DEBUG_LEVEL=0" in there worked.

这篇关于如何在VS2010中设置_ITERATOR_DEBUG_LEVEL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 06:46