Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2004-12-06 06:53:00


Stefan Slapeta wrote:

> This doesn't explain why one shouldn't use a shared rt with the static
> boost.thread lib! [IMO there got some things mixed up.]

Yes it seems so. I know no reason why a dynamic CRT could not be used
with the static lib.
There indeed seems something wrong. I recommend having Michael also have
a look on it!

>
> IIRC the code above is only considered when there is no static TSS
> cleanup possible for a certain compiler, no?
>
Hmm. As far as I remember the code is specific to MSVC, and the static
TSS cleanup has been resolved.
So in principle any MS compiler should now support it.

>
> AFAIK this is a common (DLL) problem and not specific to the thread
> library.
>
Again yes. I misunderstood your original post. I vaguely remember havin
tried to ask the question
before. But perhaps I made my point not clear enough. Perhaps you can
resolve the issue?
I just tried to compile with having
BOOST_THREAD_USE_LIB
while selecting the dynamic RTL. (Which is exactly what you are refering
too?)

At link stage the compiler complains about:
LINK : fatal error LNK1104: cannot open file
'libboost_thread-vc71-mt-gd-1_32.lib'

So this obviously is because the bjam did not build it.
Only libboost_thread-vc71-mt-sgd.lib is there.

Altough I recommend to test it before enabling it.

Roland


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