Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set _ITERATOR_DEBUG_LEVEL in VS2010?

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?

like image 671
Kajetan Abt Avatar asked Apr 20 '11 08:04

Kajetan Abt


1 Answers

Found the solution.

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

Add "_ITERATOR_DEBUG_LEVEL=0" in there worked.

like image 79
Kajetan Abt Avatar answered Oct 10 '22 18:10

Kajetan Abt