Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-20 01:08:52


Hi Tom,

> 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?

No, at least without writing some specific tool/shell script that will do
this.

> 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?]

.a libraries are just concetenation of object files (plus small index). To
combine several .a files you need to extra all members of each one, and
create a new .a file from those. And no standard tool can do this.

Should not be very hard with Python script, (or Perl, or even shell), but not
done yet by anybody.

- 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