Boost logo

Boost-Build :

From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-02-26 06:44:55

Vladimir Prus wrote:

> Zbynek Winkler wrote:
>>What is the prefered way to link with boost libraries? Let's say I have a
>>project outside of the boost tree (with its own project-root.jam) and I
>>want to use the unit_test_framework. Do I have to treat the library like
>>any other prebuilt library (with the <name> and <search> stuff) or can I
>>link to it in some 'smart' way (ie. using its Jamfile)? Thanks.
> Hi Zbynek,
> here's what I use in my project:
> use-project /boost/filesystem : $(POOL_DIR)/boost/libs/filesystem/build ;
> And later
> lib utils : utils.cpp debug.cpp
> fs_helpers.cpp /boost/filesystem//boost_filesystem ;
> While the directory mentioned by 'use-project' has both Jamfile and
> Jamfile.v2, the latter is preferred by default.

Thanks, that works like a charm :)

Now I have another problem. When I do 'clean' it cleans even the library which
is not what I've intended. Is there a way to stop the 'clean recursion'? The
MSVC IDE has two cleans - a recursive and 'clean selection only' that cleans
just the selected target but not its dependencies.


Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic

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