Boost logo

Boost-Build :

From: Andrei Melnikov (andy.melnikov_at_[hidden])
Date: 2006-06-30 01:28:39


On 26/06/06, Chris Weed <chrisweed_at_[hidden]> wrote:
> 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?

Yes. You can use "alias" rule for this library instead of "lib" rule.

Andrey


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