Subject: [Boost-bugs] [Boost C++ Libraries] #3491: [serialization] Fails when static library used along with DLL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-28 09:06:35
#3491: [serialization] Fails when static library used along with DLL
------------------------------------------------------------+---------------
Reporter: Chard | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: serialization
Version: Boost 1.40.0 | Severity: Problem
Keywords: static library dll polymorphic BOOST_DLLEXPORT |
------------------------------------------------------------+---------------
If the serialization code of some polymorphic type is performed in the
DLL, and there is a static library which derives from this type, the guid
registration mechanism can result is duplicate guids and lead to failure.
This issue also shows how the BOOST_DLLEXPORT (stop linker dead-stripping)
trick results in (MSVC) linker LNK4006 warnings for this type of set up.
The attached MSVC71 solution demonstrates the issue.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3491> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC