Boost logo

Boost-Build :

Subject: Re: [Boost-build] trying to compile a test project with boost.build which uses boost libraries
From: Geoff Hilton (geoff.hilton_at_[hidden])
Date: 2009-02-26 16:12:22


Steven Watanabe wrote:
> AMDG
>
> Geoff Hilton wrote:
>> I'm trying boost.build out under Linux, I compiled bjam and followed
>> the instructions to the letter, details below. I can compile with
>> boost/shared_ptr.hpp no problem, but when I add in boost.filesystem I
>> get all sorts of errors (below), why is it trying to use
>> $BOOST_ROOT/bin.v2 ? I deleted that folder once the boost compilation
>> was done and put stage's lib folder into $BOOST_ROOT (I think.., heh).
>>
>> --jamroot.jam--
>>
>> project
>> : requirements <include>/usr/local/boost_1_38_0 <threading>multi
>> <library>/boost//filesystem
>> ;
>> use-project boost : /usr/local/boost_1_38_0 ;
>> exe testmake :
>> testmake.cpp /boost//filesystem /boost//system ;
>>
>
> /boost//filesystem refers to the library under bin.v2, rather than
> the library in the stage/lib directory. If you want to use prebuild
> libraries,
> you can use the boost module. (Try running bjam --help boost)
>
> In Christ,
> Steven Watanabe

Thanks for the response, I tried a few things and I evidently am still
completely and thoroughly confused. Using pre-built boost, do I need to
specify the libraries manually as per
http://beta.boost.org/doc/tools/build/doc/html/bbv2/tutorial/prebuilt.html
  ? I imagine I should put all that in the site-config.jam as specified
in
http://beta.boost.org/doc/tools/build/doc/html/bbv2/recipies/site-config.html
? How can I take advantage of boost's magic to simplify the lib
declarations as much as possible?

I wish there was a "hello world v2" type example for this in the
documentation. :|

Thanks,
Geoff


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