Boost logo

Boost-Build :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2006-06-26 09:21:56


Hi,
In my library, I have a bunch of functions that get registered in a
factory. They use a string to look them up.
What I think happens is that since the linker doesn't know these are
needed the symbols aren't extracted. Using a different build system I
could just tell it to extract all the symbols for the library.

I am guessing my next best option is to separate the files with
registrations into a separate library and link the object files. Could
I make whatever lib/exe that depends on this library link all of the
object files directly?
Chris

On 6/26/06, Vladimir Prus <ghost_at_[hidden]> wrote:
> On Sunday 25 June 2006 03:20, Chris Weed wrote:
>
> > I would like to create a Jamfile for my library that requires anything
> > that links it applies the link flag -zallextract before it and the
> > link flag -zdefaultextract after it. This would extract all symbols
> > from my library and extract the default from all others.
>
> Hi Chris,
> I'm afraid I don't know any solution for this. Maybe, if you describe the
> situation in more detail folks on this list can suggest a better solution.
>
> - Volodya
>
> --
> Vladimir Prus
> http://vladimir_prus.blogspot.com
> Boost.Build V2: http://boost.org/boost-build2
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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