Subject: [Boost-bugs] [Boost C++ Libraries] #11791: undefined reference to ~basic_text_iprimitive() when linking to libboost_serialization.so
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-12 13:24:50
#11791: undefined reference to ~basic_text_iprimitive() when linking to
libboost_serialization.so
------------------------------+---------------------------
Reporter: anonymous | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.59.0 | Severity: Showstopper
Keywords: |
------------------------------+---------------------------
When I'm trying to link into libboost_serialization.so I get such error:
{{{undefined reference to
`boost::archive::basic_text_iprimitive<stlp_std::basic_istream<char,
stlp_std::char_traits<char> > >::~basic_text_iprimitive()'}}}
I suppose that the problem is that {{{BOOST_SYMBOL_VISIBLE}}} was added
into {{{class basic_text_iprimitive}}}. nm says that this symbols is 't',
while in bost-1.57 (without BOOST_SYMBOL_VISIBLE) was 'W'.
The test case:
{{{
#include <boost/archive/text_iarchive.hpp>
#include <sstream>
int main()
{
std::istringstream istr;
boost::archive::text_iarchive ia( istr );
return 0;
}
}}}
Compiler info:
{{{
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)
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11791> 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:19 UTC