Boost logo

Boost Users :

From: Bob Kline (bkline_at_[hidden])
Date: 2004-03-21 14:29:13


We're using Boost's regex package in a Windows environment for a server
built with Microsoft Visual Studio 7.x. We'd like to be able to build
our server with debugging symbols for our own code, but still use the
release versions of the Microsoft runtime DLLs (because the debugging
versions of the Microsoft runtime DLLs aren't redistributable, so we
can't legally install them on our production server). The problem is,
when we compile our own code for debugging (with -Zi and -D_DEBUG), the
Boost headers detect this and do their behind-the-curtain magic to point
to a version of the regex package which is linked to the debugging
versions of the runtime libraries (msvcr71d and msvcp71d). We've tried
using the BOOST_REGEX_NO_LIB trick, specifying the version of the regex
library to which we want to link (boost_regex_vc7_mdi.lib) but this
doesn't work, because although it compiles fine, the linker chokes
complaining about the inability to find a bunch of severely mangled names.

What's the *real* trick for using the version of the library we want? Do
we need to hack the distributed makefile each time we upgrade regex?
(Or worse, shuffle libraries around by renaming them?)

Thanks.

Bob Kline


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