Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-06-22 12:26:38

Sohail Somani wrote:
>> -----Original Message-----
>> From: boost-build-bounces_at_[hidden]
>> [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Ilya Sokolov
>>> __object__ files that were inputs into the linker for
>> targets a and b?
>> as i understand, you need this:
>> [snip very good suggestions]
> Ok, so I lied (sorry)... Its more like this:
> lib a : [ glob a/*.cpp ] ;
> lib b : [ glob b/*.cpp ] ;
> lib c : [ glob c/*.cpp ] b ; # c needs b
> lib all : a b c ;
> The globbing is throwing me off.
> Sohail
I'm pretty sure it's possible to create a .lib that's made up of the
objects from other .lib files, but I don't think it's trivial. msvc and
darwin (IIRC) support .lib's made up of other .lib's, but I believe that
gcc doesn't.

What are you trying to accomplish? That might give us a better idea of
what to suggest. Are you getting errors with that approach?

If you had a line like "exe foo : foo.c a c ;" It would link in "a",
"b", and "c" (for static libraries) or add all of them to the required
dynamic libs for the executable to load at run-time. I haven't tried
creating a lib of other lib's before, so I don't know if that gives an


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at