Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-03-16 11:02:23


> I am getting the following error. I see that it is trying to link to the
> static library, but I still get this error.
> Would appreciate if someone can correct my usage.
> Linking to lib file: lib"boost_thread"-vc71-mt-sgd-1_31.lib
>
> c:\Boost\include\boost-1_31\boost\config\auto_link.hpp(269) : fatal error
> C1189: #error : "Mixing a dll boost library with a static runtime is a
> really bad idea..."

Boost.thread is currently only available as a dll that links to the dynamic
runtime, to use it you will either have to:

1) do the same thing, and link to the dll runtime.
 or
2) build your own cut down version of the lib (if you search the list you
should find other people who have managed to do the same, basically I think
it means leaving out the thread-specific-ptr code), then define
BOOST_THREAD_NO_LIB (to disable auto-linking) and link to your custom build
of the thread lib.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk