Message 1 of 6

Not applicable
12-04-2015
02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I don't really understand why I shouldn't use _DEBUG preprocessor macro in my debug configuration. Without this, boost gives me errors (auto_link.hpp):
// // error check: // #if defined(__MSVC_RUNTIME_CHECKS) && !defined(_DEBUG) # pragma message("Using the /RTC option without specifying a debug runtime will lead to linker errors") # pragma message("Hint: go to the code generation options and switch to one of the debugging runtimes") # error "Incompatible build options" #endif
So I need to do some hacking like:
//<-- BOOST HACK! #ifndef NDEBUG #define _DEBUG #endif #include <boost/foreach.hpp> #include <boost/format.hpp> #include <boost/signals.hpp> #include <boost/cast.hpp> #include <boost/algorithm/string.hpp> #include <boost/shared_ptr.hpp> #ifdef _DEBUG #undef _DEBUG #endif //BOOST HACK -->//
But I'm afraid that sooner or later something will go wrong. My boost version is 1.52. Anyone can help?
Solved! Go to Solution.