Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-11-24 05:36:08


>> My project setting uses "Multi-threaded DLL (/MD)" in code gen, and
>> links to "libboost_unit_test_framework-vc71-mt-sgdp.lib" in debug
>> mode. My purpose was to use STLport in a DLL, but the whole Boost
>> statically linked. (I know I can link with
>> "libboost_unit_test_framework-vc71-mt-gdp.lib," but I want Boost to
>> be statically linked.)

You must link to a Boost lib that uses the same runtime as both your project
and STLport, for:

/MD use libboost_unit_test_framework-vc71-mt-p.lib
/MDd use libboost_unit_test_framework-vc71-mt-gdp.lib

Both of these are static libraries BTW, dll import libraries don't have the
"lib" prefix to them.

BTW I strongly recomend that you use /MDd for debug builds, using /MD and
then the IDE defining _DEBUG can casue problems with third party libs
including Boost and STLport.

Finally remember that Boost debug libraries are built with __STL_DEBUG
defined: you'll need to define this in your own code in order to link
against them.

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