Boost logo

Boost-Build :

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

Steven Watanabe wrote:
> Geoff Hilton wrote:
>> I'm trying 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
  ? I imagine I should put all that in the site-config.jam as specified
? 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. :|


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at