Boost C++ Libraries: Ticket #4698: serialization link errors mingw https://svn.boost.org/trac10/ticket/4698 <p> Wery similar <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4670" title="#4670: Bugs: Revised boost/config/compiler/gcc.hpp causes linker errors for Cygwin ... (closed: fixed)">#4670</a> but under mingw </p> <p> 1.43 works fine </p> <p> bjam build successed, but when use boost_serializtion got </p> <pre class="wiki">Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_iarchiveEEEE12get_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_iarchiveEEEE12is_destroyedEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_iarchiveEEEE18get_const_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_iarchiveEEEE20get_mutable_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_oarchiveEEEE12get_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_oarchiveEEEE12is_destroyedEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_oarchiveEEEE18get_const_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_15binary_oarchiveEEEE20get_mutable_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_21naked_binary_iarchiveEEEE12get_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_21naked_binary_iarchiveEEEE12is_destroyedEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_21naked_binary_iarchiveEEEE18get_const_instanceEv: symbol not found Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_13mapINS2_21naked_binary_iarchiveEEEE20get_mutable_instanceEv: symbol not found collect2: ld returned 1 exit status </pre><pre class="wiki">C:\Qt\2010.05\mingw\bin&gt;gcc -v Using built-in specs. Target: mingw32 Configured with: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj --enabl e-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32 Thread model: win32 gcc version 4.4.0 (GCC) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4698 Trac 1.4.3 Anton Sergunov <setosha@…> Thu, 30 Sep 2010 03:25:03 GMT cc set https://svn.boost.org/trac10/ticket/4698#comment:1 https://svn.boost.org/trac10/ticket/4698#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">setosha@…</span> added </li> </ul> Ticket Anton Sergunov <setosha@…> Thu, 30 Sep 2010 03:26:22 GMT <link>https://svn.boost.org/trac10/ticket/4698#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4698#comment:2</guid> <description> <p> bjam reports many code visibility warnings in build process. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sun, 03 Oct 2010 18:09:19 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/4698#comment:3 https://svn.boost.org/trac10/ticket/4698#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jim Bell <jim@…> Mon, 18 Oct 2010 00:13:53 GMT <link>https://svn.boost.org/trac10/ticket/4698#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4698#comment:4</guid> <description> <p> Demangled, the name translates to </p> <p> boost::serialization::singleton&lt;boost::archive::detail::(anonymous namespace)::map&lt;boost::archive::xml_iarchive&gt; &gt;::get_instance() </p> <p> The unnamed namespace is what's causing the problem. I give the namespace a name ('extra_detail' for example), and these linker errors go away. </p> <p> There are two files using them: archive/impl/archive_serializer_map.ipp and serialization/export.hpp. </p> <p> See the attached patch file. </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Mon, 18 Oct 2010 00:14:21 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4698 https://svn.boost.org/trac10/ticket/4698 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ser_cannot_export.patch</span> </li> </ul> Ticket Vladimir Prus Wed, 20 Oct 2010 06:00:19 GMT version, severity changed https://svn.boost.org/trac10/ticket/4698#comment:5 https://svn.boost.org/trac10/ticket/4698#comment:5 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost 1.45.0</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> This appears to make serialization unusable on mingw, therefore marking this as release blocker for now. </p> Ticket Vladimir Prus Wed, 20 Oct 2010 06:08:09 GMT milestone changed https://svn.boost.org/trac10/ticket/4698#comment:6 https://svn.boost.org/trac10/ticket/4698#comment:6 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost-1.45.0</span> </li> </ul> Ticket Bryce Adelstein Lelbach Wed, 20 Oct 2010 20:57:41 GMT cc, status changed; resolution set https://svn.boost.org/trac10/ticket/4698#comment:7 https://svn.boost.org/trac10/ticket/4698#comment:7 <ul> <li><strong>cc</strong> <span class="trac-author">Bryce Adelstein Lelbach</span> added </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This is fixed, with Jim's patch. </p> Ticket Robert Ramey Wed, 20 Oct 2010 21:10:13 GMT <link>https://svn.boost.org/trac10/ticket/4698#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4698#comment:8</guid> <description> <p> I've also checked in changes to address this. Let me know if the version on the trunk doesn't address it. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> </channel> </rss>