Boost logo

Boost Users :

Subject: Re: [Boost-users] Linking to release boost libs form debug build
From: John Maddock (john_at_[hidden])
Date: 2009-07-13 12:44:14


> 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?

Yes, as you've discovered the release and debug builds use different runtime
libraries, and in short "you can't do that".

What you could do is either:

1) Use a custom debug build of the Boost libraries (i.e. which link to the
debug RTL) which has optimizations turned on. Or,
2) Switch to release build in your project, but then turn debug info on and
optimizations off for your code, and let auto-linking pick the Boost lib for
you.

Please note that neither of the above will solve the problem if it's Boost
template code instantiated in your object files that are the issue.

HTH, John.


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