Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-07-06 10:11:03


On Tuesday 05 July 2005 15:41, learningnlp wrote:

> lib vectorlib : vector.cpp : <link>static ;
> lib matrixlib : matrix.cpp : <link>static ;
>
> I'd like to have src/math/jamfile as:
>
> lib math : vectorlib matrixlib : <link>static ;

Do you realize that you can link two static libraries together...

> When I try this, I'm getting undefined references; that is, I have
> something like:
>
> exe demo : demo.cpp ../math//math ;

And at the very best, this usage of ../math//math will link to vectorlib and
matrixlib, individually. If so, you can just use:

alias math : vectorlib matrixlib ;

In current CVS, if you add a source file to 'math', you'll get everything
linked in, and without it, you'll get error building 'math', because current
code does not think building a library without no real sources is a good
idea. Indeed, I don't even know how to create empty .a file.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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