Boost C++ Libraries: Ticket #4747: mingw linker errors: undefined references https://svn.boost.org/trac10/ticket/4747 <p> The MinGW build fails to link, with fifteen or undefined references as such: </p> <p> bin.v2\libs\serialization\build\gcc-mingw-4.4.0\release\threading-multi\basic_iarchive.o:basic_iarchive.cpp:(.text+0x564): undefined reference to `_imp<span class="underline">_ZNK5boost13serialization18extended_type_infoltERKS1_' </span></p> <p> Cause: the BOOST_SERIALIZATION_SOURCE flag isn't being set. Note that this flag is distinct from BOOST_ARCHIVE_SOURCE. </p> <p> The attached patch file modifies the Jamfile.v2 to pass that flag into every compilation unit. Maybe that's the final solution, but it resolves this issue. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4747 Trac 1.4.3 Jim Bell <jim@…> Mon, 18 Oct 2010 00:23:07 GMT attachment set https://svn.boost.org/trac10/ticket/4747 https://svn.boost.org/trac10/ticket/4747 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ser_jam-2010-10-15.patch</span> </li> </ul> Ticket Bryce Adelstein Lelbach Mon, 18 Oct 2010 00:41:02 GMT <link>https://svn.boost.org/trac10/ticket/4747#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4747#comment:1</guid> <description> <p> Jim, could you post the full error your getting? I'd like to see that before applying your patch. </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Mon, 18 Oct 2010 01:42:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4747#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4747#comment:2</guid> <description> <p> Please forgive the typos: "... fifteen or so undefined references ..." </p> <p> And that example without <a class="wiki" href="https://svn.boost.org/trac10/wiki/WikiFormatting">WikiFormatting</a> is: </p> <pre class="wiki">bin.v2\libs\serialization\build\gcc-mingw-4.4.0\release\threading-multi\basic_iarchive.o: basic_iarchive.cpp:(.text+0x564): undefined reference to `_imp___ZNK5boost13serialization18extended_type_infoltERKS1_' </pre><p> Which, demangled (without the win32 'imp' prefix) is: </p> <pre class="wiki">boost::serialization::extended_type_info::operator&lt;(boost::serialization::extended_type_info const&amp;) const </pre><p> I'll attach the full list of linker undefined references, but wanted put these here (for the search engines to find). </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Mon, 18 Oct 2010 01:44:03 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4747 https://svn.boost.org/trac10/ticket/4747 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ser-link-errs-2010-10.txt</span> </li> </ul> Ticket Vladimir Prus Wed, 20 Oct 2010 06:04:23 GMT version, severity changed https://svn.boost.org/trac10/ticket/4747#comment:3 https://svn.boost.org/trac10/ticket/4747#comment:3 <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> Boo, this means serialziation is just totally unusable on mingw, and there's easy fix? Let consider for 1.45 </p> Ticket Vladimir Prus Wed, 20 Oct 2010 06:07:06 GMT version, milestone changed https://svn.boost.org/trac10/ticket/4747#comment:4 https://svn.boost.org/trac10/ticket/4747#comment:4 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.45.0</span> → <span class="trac-field-new">Boost 1.44.0</span> </li> <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:54:22 GMT cc, status changed; resolution set https://svn.boost.org/trac10/ticket/4747#comment:5 https://svn.boost.org/trac10/ticket/4747#comment:5 <ul> <li><strong>cc</strong> <span class="trac-author">Bryce Adelstein Lelbach</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the patch, Jim. As of <a class="changeset" href="https://svn.boost.org/trac10/changeset/66123" title="Fixes for building Serialization with mingw. ">r66123</a> this is fixed. Hopefully it doesn't break anything on other compilers. </p> Ticket Robert Ramey Wed, 20 Oct 2010 21:07:51 GMT <link>https://svn.boost.org/trac10/ticket/4747#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4747#comment:6</guid> <description> <p> I've updated the library so that this isn't needed please don't check this in. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Bryce Adelstein Lelbach</dc:creator> <pubDate>Wed, 20 Oct 2010 21:14:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4747#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4747#comment:7</guid> <description> <p> Ramey - I asked on Boost.Users for people to confirm, I got reports back that this was not fixed. I was unable to build without this patch. I've already committed it, ofc we can always revert if need be. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Bryce Adelstein Lelbach</dc:creator> <pubDate>Wed, 20 Oct 2010 21:18:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4747#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4747#comment:8</guid> <description> <p> Sorry Ramey - I thought this was Jim's other patch. You are correct, this isn't needed and I have NOT applied this patch. In my comment I was thanking Jim for the report/submission. </p> </description> <category>Ticket</category> </item> </channel> </rss>