why the demo.cpp in serialization can't be built?

Lots of link errors (VC7.1). One of them: Test error LNK2019: unresolved external symbol "public: __thiscall boost::archive::basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> > >::~basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> > >(void)" (??1?$basic_text_oprimitive@V?$basic_ostream@DU?$char_traits@D@std@@@std@@@archive@boost@@QAE@XZ) referenced in function "public: virtual __thiscall boost::archive::text_oarchive_impl<class boost::archive::text_oarchive>::~text_oarchive_impl<class boost::archive::text_oarchive>(void)" (??1?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@UAE@XZ)

Looks like you haven't inclueded the serialization.lib files in your project and/or command line. Double check that your boost installation has built the library and that your VC Project file specifies these libraries as part of the build. Robert Ramey Jun Lu wrote:
Lots of link errors (VC7.1). One of them:
Test error LNK2019: unresolved external symbol "public: __thiscall boost::archive::basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> >
::~basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> > >(void)"
(??1?$basic_text_oprimitive@V?$basic_ostream@DU?$char_traits@D@std@@@std@@@a rchive@boost@@QAE@XZ)
referenced in function "public: virtual __thiscall boost::archive::text_oarchive_impl<class boost::archive::text_oarchive>::~text_oarchive_impl<class boost::archive::text_oarchive>(void)"
(??1?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@UAE@X Z)
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Jun Lu
-
Robert Ramey