Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-10-16 04:49:32

chyipin wrote:

> Cannot download the example. Is there any other way I can get access
> to it?

You get get it from
but it seems you have the problem solved already.

> What I have that works:
> use-project /boost/filesystem : $(BOOST_ROOT)/libs/filesystem/build ;
> exe prog
> : prog.cpp /boost/filesystem

Yes, that's what I meant.

> Is there simpler way to use the boost libraries? It is so cumbersome
> having to specify $(BOOST_ROOT)/libs/filesystem/build (i.e., I need
> to know the full path to the Jamfile.
> I found out that I can get it to work like so too:
> use-project /boost : $(BOOST_ROOT) ;
> exe prog
> : prog.cpp /boost/filesystem
> ;
> Which method is recommended?

Both are fine. If you find specifying full path to Jamfile troublesome,
specify only $(BOOST_ROOT). I prefer full path, but don't have any reason for

> Of course, I only need the filesystem
> library, but should I really need to use the entire boost library?
> This method does indeed hide the details of the library, but I wonder
> if there is a cost for the simplicity. Please comment.

There is some cost. The second method has to load all Jamfiles for boost and
create class instances that represent main targets. I believe that the time
for this should be fairly small, since those classes only record sources/
requirements and don't do anything.

- Volodya


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