Using CPlex + Boost in VS2010 in debug mode

Hello all,

I'm stuck for quite some time now on the following. I'm trying to build a project in VS2010 that includes both cplex (and concert technology for c++) and the boost libraries. I've been able to get both to work individually, however not together. The main reason for this right now is that Boost only works when I set the runtime library to /MTd, otherwise it tries to link its release libraries to my debug libraries and that definitely wouldn't work. On the other hand, CPlex complains about the _ITERATOR_DEBUG_LEVEL not matching, which makes perfect sense because the libraries from CPlex are release build. I've tried to set this constant in all ways I could find on the internet, but without any luck.
I use the following preprocessor definitions:

Debug: NDEBUG;WIN64;_CONSOLE;IL_STD;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
Release: WIN64;NDEBUG;_CONSOLE;IL_STD;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)

The release build works perfect, however I just can't get the debug build to work because of this _ITERATOR_DEBUG_LEVEL message... I really hope there is anyone with some suggestions, since I really need the debugging functionality of VS2010.

Thanks in advance!
Topic archived. No new replies allowed.