Boost logo

Boost Users :

Subject: Re: [Boost-users] [chrono] Issues with _ITERATOR_DEBUG_LEVEL
From: Christian Henning (chhenning_at_[hidden])
Date: 2012-08-13 11:10:20


Hi,

> Have you've disabled autolinking and are linking manually to the Boost
> libraries?

No, I'm working with some prep scripts that generate project solutions
for various platforms. It's all based on CMake and I just mismatched
release and debug version.

I think the main reason for my email was that I wasn't sure if I need
to put the compiler symbol ( _ITERATOR_DEBUG_LEVEL=2 ) inside
quotation marks on Windows machines.

I have now learned that I can use the dumpbin tool to double check that.

>
> What is your intent with defining _ITERATOR_DEBUG_LEVEL=2? Is it just
> trying to smash errors you don't know where they're from, or is it
> intentional to get iterator debugging in release mode?

I had an linker error complaining that _ITERATOR_DEBUG_LEVEL needs to
be set to 2 to be able to link successfully with another library.
Otherwise linking fails due to the linker directive: /FAILIFMISMATCH

>
> Your bjam command line builds the debug library, but your link command
> line indicates that you're linking against the release library.

Yes, that was my error.

Thanks for your and Mathias's time.

Christian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net