Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2003-08-22 05:39:12


Geurt Vos wrote:
> boost-1.30.2, SuSE Linux 8.2, GCC-3.3:
>
> an #include <boost/thread.hpp> results in
> #error Thread support not available!
>
> It seems that since 1.30.2 on Linux it is
> disabled by default, correct? why?
>
> gcc.hpp reads:
>
> #if [...] !defined(linux) && !define(__linux) && !define(__linux__)
> # define BOOST_HAS_THREADS
> #endif
>
> so...how do I enable threads for Linux?

Use the -pthread argument with g++.

Compiler settings are considered when checking for
the availability of threads (on systems that allow
for such checks).

Regards,
m


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