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 &,unsigned int)"
(__imp_??0?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@QAE@AAV?$basic_ostream@DV?$char_traits@D@stlpd_std@@@stlpd_std@@I@Z)
referenced in function "public: __thiscall
boost::archive::text_oarchive::text_oarchive(class
stlpd_std::basic_ostream
&,unsigned int)"
(??0text_oarchive@archive@boost@@QAE@AAV?$basic_ostream@DV?$char_traits@D@stlpd_std@@@stlpd_std@@I@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 &,unsigned int)"
(__imp_??0?$text_iarchive_impl@Vtext_iarchive@archive@boost@@@archive@boost@@QAE@AAV?$basic_istream@DV?$char_traits@D@stlpd_std@@@stlpd_std@@I@Z)
referenced in function "public: __thiscall
boost::archive::text_iarchive::text_iarchive(class
stlpd_std::basic_istream
&,unsigned int)"
(??0text_iarchive@archive@boost@@QAE@AAV?$basic_istream@DV?$char_traits@D@stlpd_std@@@stlpd_std@@I@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 const &)"
(__imp_?save@?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@QAEXABV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@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 const
&)"
(??$save_primitive@Vtext_oarchive@archive@boost@@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@@save_access@archive@boost@@SAXAAVtext_oarchive@12@ABV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@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 &)"
(__imp_?load@?$text_iarchive_impl@Vtext_iarchive@archive@boost@@@archive@boost@@QAEXAAV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@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 &)"
(??$load_primitive@Vtext_iarchive@archive@boost@@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@@load_access@archive@boost@@SAXAAVtext_iarchive@12@AAV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@@Z)
Y:\2008\iSentenceRecognition\iSentenceRecognition/Debug/iSentenceRecognizer.dll
: fatal error LNK1120: 4 unresolved externals
Thanks.
Kevin Tang.