Boost logo

Boost-Build :

From: Tom Rolfs (thomas.rolfs_at_[hidden])
Date: 2005-09-19 11:21:23


Vladimir wrote:
> 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.

Is it not possible to create a library exclusively from other
libraries? That is, can multiple .a files are combined to create one .a
file?

I have a code base that is broken up in to three static libraries.
However, I want to distribute/deploy these libraries as one lib file.

[Are libraries still just a concatenation of object files, or are they
more complicated these days?]

-- 
Tom Rolfs
 

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