Boost logo

Boost-Build :

Subject: Re: [Boost-build] trying to compile a test project with which uses boost libraries
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-26 10:45:37


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
you can use the boost module. (Try running bjam --help boost)

In Christ,
Steven Watanabe

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