Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-04-01 13:01:50


On Friday 28 March 2008 05:15:02 Jared Riley wrote:
> Hi,
>
> I'm attempting to convert a project from Make to Boost.Build (2.0-m12).
> The output of the project is a shared library.
>
> The directory structure of the project is something like this:
>
> top
> |
> --> sub1
> | |
> | --> sub11
> | | |
> | | --> a.cpp
> | | --> b.cpp
> | |
> | --> sub12
> | |
> | --> c.cpp
> | --> d.cpp
> |
> --> sub2
>
> Currently, the makefile creates a directory top/build, and compiles
> *.cpp into that directory. Then it links top/build/*.o into top.so and
> it's done.
>
> Now, what I tried to do with Boost.Build, and I can't get to work the
> way I want is the following:
> --------
> top/sub1/sub11/Jamfile:
> lib sub11 : [ glob *.cpp ] : <link>static ;
>
> top/sub1/Jamfile:
> lib sub1 : sub11 sub12 : <link>static ;

So, you are trying to create a shared library out of two other shared
libraries? This is not supported by any compiler I know.

Can you try:

        alias sub1 : sub11 sub12 ;

instead?

- Volodya


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