Q:

Is it possible to instruct MSVC to use release version of Boost when compiling Debug project?

I have built Boost in Release configuration and have staged it into one folder.
Now when I add Boost libraries into project and try to build it in Debug configuration - linker fails because there are no Debug versions libraries.
Is there a way to make MSVC 9.0 use Release version of libraries when building Debug configuration?
Of course, there is an easy soultion - build Debug version of Boost. But I am just curious.

A:

You can do two things:

Build the debug version for boost (this is the best option).
Add debugging symbols to your release build.

You can't use the release version of boost with your debug build because boost depends on the CRT, which is different in debug/release builds.

