|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2004-04-16 11:05:02
Li Lirong wrote:
> Thanks for the link. However, the current BOOST_CLASS_EXPORT mechanism
> will not work with DLLs. That's because global/static variable (the
> extended_type_info_typeid instance) is not shared by DLLs.
> I guess we may have to make the serialization library a dll and export
> the extended_type_info_typeid instance as a global variable.
Clearly you understand the main issue here. I believe its fixable although
I'm not sure that making the library a DLL in itself will addresse it.
Basically we have to find the tweak so that there is one and only one type
table be it in the main program or in the DLL of the library. I'm sure it
will require a subtle adjustment in the library. If you managed to figure
this out let me know. I'll also take a look at it.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk