
AMDG John Krajewski wrote:
I've noticed my boost libs are slowing my game down incredibly in my debug builds. I'd like to link to release boost libs even in Debug, is that possible and will it cause any problems?
It's possible, but it is very likely to cause ODR problems with msvc, because the standard library's ABI is different in debug vs. release.
Secondly, I'm not sure how to do this. Boost is somehow auto-linking to the correct lib for my build (I've downloaded the libs precompiled for visual studio). Does anyone know how this auto-linking process works and how I can override it to link to release libs instead of debug?
To disable auto-linking you can compile with -DBOOST_ALL_NO_LIB. If you do that you can link to the libraries you want manually. In Christ, Steven Watanabe