How to set _ITERATOR_DEBUG_LEVEL in VS2010?

前端 未结 2 1887
误落风尘
误落风尘 2021-01-01 18:15

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 file

相关标签:
2条回答
  • 2021-01-01 18:41

    Found the solution.

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

    Add "_ITERATOR_DEBUG_LEVEL=0" in there worked.

    0 讨论(0)
  • 2021-01-01 18:41

    Just as additional information : Project Pages / Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions and set the preprocessor macro _ITERATOR_DEBUG_LEVEL to one of the following depending on the target :

    _ITERATOR_DEBUG_LEVEL = 0 // disabled (for release builds)
    _ITERATOR_DEBUG_LEVEL = 1 // enabled (if _SECURE_SCL is defined)
    _ITERATOR_DEBUG_LEVEL = 2 // enabled (for debug builds)
    
    0 讨论(0)
提交回复
热议问题