Boost logo

Boost :

From: William E. Kempf (wekempf_at_[hidden])
Date: 2003-03-26 09:49:37


vc said:
>
> ----- Original Message -----
> From: "William E. Kempf" <wekempf_at_[hidden]>
>
>
>>
>> vc said:
>> >> As for the warnings themselves... I'm still doing more research
>> just to be 100% sure, but everything I've found thus far indicates
>> you can ignore these warnings as long as you link against the same
>> RTL in both the Boost.Threads DLL and the application. After I
>> verify this, I'll remove the warnings through the use of pragmas.
>> >
>> > So, is it ok if for the boost.thread dll and for the app I will use
>> the /MT flag (multi-threaded)
>> > instead of /MD (multi-threaded dll) that you are using when building
>> with bjam?
>>
>> According to what I'm reading about these warnings, no, that wouldn't
>> be a good idea. However, you can build against the static RTL easy
>> enough. In the $BOOST_ROOT/libs/thread/build directory issue the
>> following bjam command:
>>
>> bjam -sBUILD="<runtime-link>static"
>
> Doing so, the boost.thread will be build with the /MTd flag (for debug).
> This is exactly
> what you said that it won't be a good idea, right? Or am I missing
> something here?

Sorry, I guess I wasn't very clear (and it looks like it may have been
less clear, because I misunderstood your question). What's not a good
idea is mixing the RTLs. If you want to use /MT(d) then you should
compile Boost.Threads with /MT(d) as well.

-- 
William E. Kempf

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