On Sat, 23 Aug 2003, John Maddock wrote:

>
> > One more thing: what exactly can go wrong with 1.30.0 if
> > -pthread isn't used? Is it boost specific or a general thing
> > (e.g. issues w/ respect to libstdc++)?
>
> A general thing - without this then:
>
>  Your std lib is not thread safe.
>  Your C lib is not thread safe.
>  g++ will not emit thread safe exception handling code.
>
> Thus while for C programs enabling thread support is just a question of
> linking to the right libraries, for C++ you also need to ensure that the
> compiler "knows" that you want thread safe code.

IMHO it's not requirement to use -pthread on linux - especially when it's
not documented. I think usage of -D_REENTRANT for compiling and -lpthread
for linking should be enough.

Cheers,

Karel
--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to