Boost logo

Boost-Build :

From: Leaf Garland (Leaf_at_[hidden])
Date: 2003-11-18 12:09:10


Hello,

I'm evaluating Boost.Build V2 and I have a hopefully quick question about
linking to libraries. Apologies if it is something simple that I have
missed.

So far I have been linking to prebuilt libraries by doing something like
this:

project
: requirements
<library-path>some/libraries/path

lib a : : <name>a ;
lib b : : <name>b ;

exe main :
main.cpp
a
b
;

It seems a little long winded to have to declare every library I want to
link to in this way. I can certainly see the use of it if I want to link to
different libraries for debug or release builds but quite often I don't need
that functionality. Is it possible to do something like this?

project
: requirements
<library-path>some/libraries/path

exe main :
main.cpp
:
<lib>a
<lib>b
;

I'm not actually asking for this feature (I can live without it), I just
wanted to
check if there was a way of doing it that I had missed.

Cheers,
Leaf.

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk