From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-03-07 15:56:10
From: "Fernando Cacciola" <fcacciola_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
> > Yes, I see. But why do you need to export the placeholders from a DLL?
> Good question!
> I currently develop/mantain of set of DLLs (about 30), most of them being
> used by several Delphi EXEs.
> There is ONE 'core-like' DLL which is always used by all other DLLs (a
> of in-house RTL).
> Everything that is really general and globally used, such as boost global
> objects -i.e. the extern bind placeholders- is located in this core DLL,
> that it is avilable to any piece of code linked to it.
> Another option is to place the definitions of the placeholdes in each DLL
> that happened to used bind, something that in my configuration is
> since nearly all them use it, and all of them are linked to the core DLL.
> Of course, I could do that -it is just another 29 additional translation
> units -one per DLL- :-)
> but why would I? It is easier to mark them as exported so they CAN be
> placed in a unique shared library if needed. If they are used in a single
> EXE, or within a DLL, the 'extra' BOOST_DECL doesn't hurt, AFAICT.
You can put the placeholders into the import library for the DLL... if you
know how to do that, I don't. :-) (But it's possible.) Or in a separate
Exporting _1 from a DLL looks wierd. :-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk