From: brock_peabody (bpyama_at_[hidden])
Date: 2003-10-08 14:34:52
We're almost there.
I can get everything to work now except for the requirements part.
Boost.Build accepts the following Jamfile but it does not do what I
: requirements <threading>multi
use-project /boost/thread : $(BOOST_ROOT)/libs/thread/build ;
exe a : a.cpp /boost/thread//boost_thread : <threading>multi ;
Notice that I've tried to specify threading as multi two ways.
Neither one has the desired effect - it still tries to depend
on /boost/thread as a single threaded library.
Everything works just fine if I specify "threading=multi" on the
command line though, so I can move forward even with this unresolved.
Thank you very much for your help and patience.
--- In jamboost_at_[hidden], Vladimir Prus <ghost_at_c...> wrote:
> Yes, you're building your project with
> Boost.Build refuses to build Boost.Thread in that case. Note that
even if it
> worked, it's likely to crash at runtime, since when compiling with
> <threading>single other code might not be thread-safe.
> The solution is to either
> - add "threading=multi" to bjam command line
> - add "<threading>multi" to the requrements of your proejct
> (if it really required threading support)
> : requirements <threading>multi
> - add "<threading>multi" to default build of your project
> : default-build <threading>multi
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