Boost logo

Boost-Build :

From: Ilya Sokolov (fal_delivery_at_[hidden])
Date: 2006-06-22 02:55:02


Sohail Somani wrote:
> Hi,
>
> If I have:
>
> lib a : a.cpp ;
> lib b : b.cpp ;
>
> lib both : a b ;
>
> Where I want both to export both a's and b's symbols, how can I use the
> __object__ files that were inputs into the linker for targets a and b?

as i understand, you need this:

obj a_obj : a.cpp ;
obj b_obj : b.cpp ;

lib a : a_obj ;
lib b : b_obj ;

lib both : a_obj b_obj ;

or try:

lib a : [ obj a : a.cpp ] ;
lib b : [ obj b : b.cpp ] ;

lib both : a..a b..b ;
# ^^^^ refer to inline target a of usual target a


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