Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-05-17 02:25:18

Achim Domma wrote:

> I just managed to build my first python extension with bpl and bjam, and of
> course I have more questions now:
> - How can I tell bjam to link with third party libraries, which are not
> build with bjam ? The statement <dll>../bpl seems to rely on the bjam
> folder structure.

Using <findlib>whatever in requirements for a target. If the library is not
in the default search path, <library-path>/some/path can be added to
Finally, you can use <library-file> feature like this:

exe a : a.cpp : <library-file>b.a ;

> - Is there an easy way to use bjam outside the boost source tree? As far as
> I understand, bjam walks up the tree to find some jamfiles, but that would
> fail if I invoke it outside the boost tree.

1. Set BOOST_BUILD_PATH environmental var to the dir where boost build files
live. (<boost_root>/tools/build)


2. Create a file "boost-build.jam" at the top of your project and put the
only line there:

boost-build <boost-root>/tools/build ;

- Volodya


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