Boost logo

Boost-Build :

From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-08-20 08:56:15


Christopher Currie <gclbb-jamboost_at_[hidden]> writes:

>> I edited Jamfile. that what I had :
>>
>> exe hello : hello.cpp : <threading>multi ;
>
> You've set the "requirements" on the target, where you probably wanted
> to set "default-build" on the project. Add the following to the top of
> the Jamfile:
>
> project : default-build <threading>multi ;

I don't think Konstantin is imagining the problem. For example, I
wanted to use Boost.Threads in a project. First I discovered its
Jamfile.v2 wasn't set up to build on Windows... but that was
comparitively easy to fix. Then I found it didn't seem to have
multithreading in its requirements, so I added it. When I built it,
however, it still tried to build single-threaded. So I added it to
the default build also and it worked. That seems redundant to me.

I'm building my application as a bunch of libraries, so I added
<library>/boost/thread to one of my lib's requirements (BTW, I had to
find this by trial-and-error -- I should probably know this stuff,
but unless there's documentation somewhere I tend to lose track).

Now my library would still build single-threaded unless I added
<threading>multi to the default build (even adding it to the
requirements didn't help).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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