Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2005-06-02 10:58:38


On 2 Jun 2005, at 16:25, Phillip Seaver wrote:

> (...)

> On a side note, I've got a prebuilt library that requires a library
> that
> I build, so I do something like this:
>
> lib prebuilt : : <file>prebuilt_d.a <variant>debug <threading>single
> <use>a ;
> lib a : a.cpp ;
> exe b : b.cpp prebuilt ;
>
> IIRC, it builds 'a' when necessary. The problem is that it doesn't put
> 'a' after 'prebuilt' on the link line, so I get link errors (on Unix).
> I worked around it by adding "<library-file>a" to the exe definition.

I haven't tested it but I think this should work:

lib prebuilt : : <file>prebuilt_d.a <variant>debug <threading>single
<use>a : : <library>a ;

Regards,

Pedro

 


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