Boost logo

Boost :

From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2005-01-18 12:31:39


Hi Christoph

>> I suspect this means that ST builds are no longer possible on some
>> GCC platforms (I'm using MinGW). Could someone please confirm or
>> deny this?
>
> builds without MT support are still possible but you need to
> explicitly define BOOST_DISABLE_THREADS (either via the compiler
> command line option or via your own version of boost/config/user.hpp).
>
> Yes, it is annoying, but given that gcc 3.4 does not provide a way to
> detect at compile time whether the option `-pthread' (or whatever it
> is on your platform) is present on the compiler command line, there
> seems to be no better solution. The corresponding PR in the gcc bug
> tracking system
> <URL:http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953> did not see
> much activity lately whence I entertain some doubt whether there will
> be a resolution before gcc 4.0.

Thanks a lot for the info. I guess this makes it a bjam issue then. It
seems that the mingw toolset should define BOOST_DISABLE_THREADS for a
single-threaded build.

Regards,

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header. 

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