Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-04-16 03:10:20


Li Lirong wrote:

> Vladimir Prus wrote:
>
>> There's BOOST_CLASS_EXPORT. Take a look at
>> http://www.rrsd.com/boost/libs/serialization/doc/traits.html#export
>
> 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 think this used to work for my project, which uses DLL.

> I guess we may have to make the serialization library a dll and export
> the extended_type_info_typeid instance as a global variable.

Probably, the reason it worked for me is that I had shared library..

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk