Boost logo

Boost Users :

Subject: Re: [Boost-users] Linking to release libs in debug build
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-13 11:56:25


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


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