Using in the same time Boost in release and debug mode

Posted by Oodini on Stack Overflow See other posts from Stack Overflow or by Oodini
Published on 2010-01-15T16:08:48Z Indexed on 2010/04/07 19:03 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

Hello,

The title is just for teasing. :-) I know it isn't possible, but here is my problem.

My app (a DLL, actually) uses Boost. It also uses an external API, which also uses Boost. The external API is of course provided in a release binary, anlong the needed release Boost binaries.

When I compile/link my DLL in release mode, I have no problem. I precise I link my app to Boost in a dynamic way (BOOST_ALL_DYN_LINK). In debug mode, I can't load my DLL. I am not sure it is because of Boost, but I suspect Windows doesn't like working with two Boost (the release one called by the external lib, and the debug one called by my code).

Will it work better if I link my code statically with the release Boost ?

I don't think it is related to CRT, because I have nothing in the Events Viewer.

I use Visual Studio 2005 SP1.

Thanks.

© Stack Overflow or respective owner

Related posts about debug

Related posts about release