Boost logo

Boost Users :

From: Kevin Tang (kevin_at_[hidden])
Date: 2008-07-03 00:08:39


I use Boost Library 1.34.1 and STLport 5.1.5. I can successfully build
"...-p.." library for Boost.
But during compile my program (using Boost Serialization), it has
linking error. Anyone know the solution?

My environment:
- STLport 5.1.5
- Boost 1.34.1
- MS Visual C++ 2003 with SP1
- MS Windows XP SP3.

Linking...
   Creating library Debug/iSentenceRecognizer.lib and object
Debug/iSentenceRecognizer.exp
iSentenizer.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::archive::text_oarchive_impl<class
boost::archive::text_oarchive>::text_oarchive_impl<class
boost::archive::text_oarchive>(class stlpd_std::basic_ostream<char,class
stlpd_std::char_traits<char> > &,unsigned int)"
(__imp_??0?$text_oarchive_impl_at_Vtext_oarchive_at_archive@boost@@@archive_at_boost@@QAE_at_AAV?$basic_ostream_at_DV?$char_traits_at_D@stlpd_std@@@stlpd_std@@I_at_Z)
referenced in function "public: __thiscall
boost::archive::text_oarchive::text_oarchive(class
stlpd_std::basic_ostream<char,class stlpd_std::char_traits<char> >
&,unsigned int)"
(??0text_oarchive_at_archive@boost@@QAE_at_AAV?$basic_ostream_at_DV?$char_traits_at_D@stlpd_std@@@stlpd_std@@I_at_Z)
iSentenizer.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::archive::text_iarchive_impl<class
boost::archive::text_iarchive>::text_iarchive_impl<class
boost::archive::text_iarchive>(class stlpd_std::basic_istream<char,class
stlpd_std::char_traits<char> > &,unsigned int)"
(__imp_??0?$text_iarchive_impl_at_Vtext_iarchive_at_archive@boost@@@archive_at_boost@@QAE_at_AAV?$basic_istream_at_DV?$char_traits_at_D@stlpd_std@@@stlpd_std@@I_at_Z)
referenced in function "public: __thiscall
boost::archive::text_iarchive::text_iarchive(class
stlpd_std::basic_istream<char,class stlpd_std::char_traits<char> >
&,unsigned int)"
(??0text_iarchive_at_archive@boost@@QAE_at_AAV?$basic_istream_at_DV?$char_traits_at_D@stlpd_std@@@stlpd_std@@I_at_Z)
iSentenizer.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
boost::archive::text_oarchive_impl<class
boost::archive::text_oarchive>::save(class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > const &)"
(__imp_?save@?$text_oarchive_impl_at_Vtext_oarchive_at_archive@boost@@@archive_at_boost@@QAEXABV?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@Z)
referenced in function "public: static void __cdecl
boost::archive::save_access::save_primitive<class
boost::archive::text_oarchive,class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> > >(class
boost::archive::text_oarchive &,class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> > const
&)"
(??$save_primitive_at_Vtext_oarchive_at_archive@boost@@V?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@save_access_at_archive@boost@@SAXAAVtext_oarchive_at_12@ABV?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@Z)
iSentenizer.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
boost::archive::text_iarchive_impl<class
boost::archive::text_iarchive>::load(class
stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class
stlpd_std::allocator<char> > &)"
(__imp_?load@?$text_iarchive_impl_at_Vtext_iarchive_at_archive@boost@@@archive_at_boost@@QAEXAAV?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@Z)
referenced in function "public: static void __cdecl
boost::archive::load_access::load_primitive<class
boost::archive::text_iarchive,class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> > >(class
boost::archive::text_iarchive &,class stlpd_std::basic_string<char,class
stlpd_std::char_traits<char>,class stlpd_std::allocator<char> > &)"
(??$load_primitive_at_Vtext_iarchive_at_archive@boost@@V?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@load_access_at_archive@boost@@SAXAAVtext_iarchive_at_12@AAV?$basic_string_at_DV?$char_traits_at_D@stlpd_std@@V?$allocator_at_D@2@@stlpd_std@@@Z)
Y:\2008\iSentenceRecognition\iSentenceRecognition/Debug/iSentenceRecognizer.dll
: fatal error LNK1120: 4 unresolved externals

Thanks.
Kevin Tang.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net