Boost C++ Libraries: Ticket #11791: undefined reference to ~basic_text_iprimitive() when linking to libboost_serialization.so https://svn.boost.org/trac10/ticket/11791 <p> When I'm trying to link into libboost_serialization.so I get such error: </p> <p> <code>undefined reference to `boost::archive::basic_text_iprimitive&lt;stlp_std::basic_istream&lt;char, stlp_std::char_traits&lt;char&gt; &gt; &gt;::~basic_text_iprimitive()'</code> </p> <p> I suppose that the problem is that <code>BOOST_SYMBOL_VISIBLE</code> was added into <code>class basic_text_iprimitive</code>. nm says that this symbols is 't', while in bost-1.57 (without BOOST_SYMBOL_VISIBLE) was 'W'. </p> <p> The test case: </p> <pre class="wiki">#include &lt;boost/archive/text_iarchive.hpp&gt; #include &lt;sstream&gt; int main() { std::istringstream istr; boost::archive::text_iarchive ia( istr ); return 0; } </pre><p> Compiler info: </p> <pre class="wiki">Using built-in specs. COLLECT_GCC=i686-pc-linux-gnu-g++ COLLECT_LTO_WRAPPER=/home/build/toolchain/gcc-4.7.2.5/libexec/gcc/i686-pc-linux-gnu/4.7.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../gcc-4.7.2/configure --target=i686-pc-linux-gnu --prefix=/home/build/toolchain/gcc-4.7.2.5 --disable-nls --enable-languages=c,c++ Thread model: posix gcc version 4.7.2 (GCC) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11791 Trac 1.4.3 Bogdan <bogdans@…> Thu, 12 Nov 2015 13:28:37 GMT cc set https://svn.boost.org/trac10/ticket/11791#comment:1 https://svn.boost.org/trac10/ticket/11791#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">bogdans@…</span> added </li> </ul> Ticket Bogdan <bogdans@…> Thu, 12 Nov 2015 13:57:10 GMT <link>https://svn.boost.org/trac10/ticket/11791#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11791#comment:2</guid> <description> <p> The same problem with <code>~basic_text_oprimitive</code>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sun, 15 Nov 2015 07:04:16 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11791#comment:3 https://svn.boost.org/trac10/ticket/11791#comment:3 <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've made changes which I believed address this. They are currently in the develop branch. Being optimistic, I'm going to make this ticket as fixed. </p> Ticket