Boost C++ Libraries: Ticket #3802: link error happens to demo_portable_archive https://svn.boost.org/trac10/ticket/3802 <p> I download boost 1.41.0 src to Debian sid. After compiling and installing the library successfully, I tried to build the demo_portable_binary which locates libs/serialization/example. </p> <p> compilation is ok, but I'm unable to link it. </p> <p> link cmd: </p> <blockquote> <p> g++ -o /tmp/demo_portable_archive /tmp/portable_binary_*.o /tmp/demo_portable_archive.o -lboost_serialization -L/usr/local/lib </p> </blockquote> <p> Here is the error msg: </p> <blockquote> <p> demo_portable_archive.cpp:(.text._ZNK5boost7archive6detail15common_iarchiveI24portable_binary_iarchiveE4findERKNS_13serialization18extended_type_infoE[boost::archive::detail::common_iarchive&lt;portable_binary_iarchive&gt;::find(boost::serialization::extended_type_info const&amp;) const]+0xd): undefined reference to `boost::archive::detail::archive_serializer_map&lt;portable_binary_iarchive&gt;::find(boost::serialization::extended_type_info const&amp;)' </p> </blockquote> <p> collect2: ld returned 1 exit status </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3802 Trac 1.4.3 Steven Watanabe Wed, 30 Dec 2009 16:46:15 GMT component changed; owner set https://svn.boost.org/trac10/ticket/3802#comment:1 https://svn.boost.org/trac10/ticket/3802#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Robert Ramey</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">serialization</span> </li> </ul> Ticket Robert Ramey Mon, 01 Mar 2010 06:42:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3802#comment:2 https://svn.boost.org/trac10/ticket/3802#comment:2 <ul> <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> I believe this has been fixed in 1.42 </p> <p> I did build and run this with the latest version and it did run successfully. </p> <p> However it did fail to link with MSVC when built to use the DLL version of the library. This is due to conflicts regarding import/export of declarations. </p> <p> Robert Ramey </p> Ticket