Boost logo

Boost-Build :

Subject: Re: [Boost-build] pthreads & boost build
From: Jose . (kasty.jose_at_[hidden])
Date: 2011-07-01 06:26:14


Hi,

I'm not an expert in Boost Build, but why don't you just add the option to
<cxxflags>? Something like:

exe myapp : someSource.cpp : <cxxflags>"-pthread" ;

That said, I encourage you to use Boost Threads instead of Posix Threads.
They are far more usable, portable, and fun!

Regards.
Jose.

2011/7/1 Daniel <sellmann_at_[hidden]>

> **
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> I'm using the boost build tool for a quite while now, but this time I
> cannot help myself and even google does not seem to find the right
> answer. I want to link against the pthread lib. Using gcc I would do
> something like: g++ someSource.cpp -pthread.
>
> How to do this using bjam??
>
> Many Thanks,
>
> Cheers,
> Daniel
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk