[serialization] newbie compilation question
I've got boost 1.38 built. When I try to build demo.cpp, it fails. I'm building in the serialization/examples subdirectory. I think this is a supported compiler. No doubt I'm doing something very stupid and hopefully very easy to fix. Thanks in advance. --Len make -k g++ --version g++ (Debian 4.3.2-1.1) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++ -g -I/share/space/net-srcs/boost_1_38_0 demo.cpp In file included from demo.cpp:16: /share/space/net-srcs/boost_1_38_0/boost/archive/tmpdir.hpp: In function ‘char* boost::archive::tmpdir()’: /share/space/net-srcs/boost_1_38_0/boost/archive/tmpdir.hpp:42: warning: deprecated conversion from string constant to ‘char*’ /tmp/ccezla7D.o: In function `boost::archive::text_iarchive& boost::serialization::smart_cast_impl::referenceboost::archive::text_iarchive&::polymorphic::cross::castboost::archive::detail::basic_iarchive(boost::archive::detail::basic_iarchive&)': /share/space/net-srcs/boost_1_38_0/boost/serialization/smart_cast.hpp:78: undefined reference to `typeinfo for boost::archive::detail::basic_iarchive' /tmp/ccezla7D.o: In function `boost::archive::text_oarchive& boost::serialization::smart_cast_impl::referenceboost::archive::text_oarchive&::polymorphic::cross::castboost::archive::detail::basic_oarchive(boost::archive::detail::basic_oarchive&)': /share/space/net-srcs/boost_1_38_0/boost/serialization/smart_cast.hpp:78: undefined reference to `typeinfo for boost::archive::detail::basic_oarchive' /tmp/ccezla7D.o: In function `~iserializer': /share/space/net-srcs/boost_1_38_0/boost/archive/detail/iserializer.hpp:141: undefined reference to `boost::archive::detail::basic_iserializer::~basic_iserializer()' /share/space/net-srcs/boost_1_38_0/boost/archive/detail/iserializer.hpp:141: undefined reference to `boost::archive::detail::basic_iserializer::~basic_iserializer()' ... more errors
AMDG lenberman wrote:
I've got boost 1.38 built.
When I try to build demo.cpp, it fails. I'm building in the serialization/examples subdirectory. I think this is a supported compiler. No doubt I'm doing something very stupid and hopefully very easy to fix.
Thanks in advance. --Len
make -k g++ --version g++ (Debian 4.3.2-1.1) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
g++ -g -I/share/space/net-srcs/boost_1_38_0 demo.cp
You need to link to the serialization library. In Christ, Steven Watanabe
participants (2)
-
lenberman
-
Steven Watanabe