I build regex with stlport , but have some problem

I build the regex libs with vc7.1-stlport. Then I test it: #include <boost/regex.hpp> int _tmain(int argc, _TCHAR* argv[]) { boost::regex ex; return 0; } but link error: test1.obj : error LNK2019: unresolved external symbol "public: __thiscall boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >(class _STL::allocator<char> const &)" (??0?$reg_expression@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@ QAE@ABV?$allocator@D@_STL@@@Z) referenced in function "public: __thiscall boost::basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >::basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >(class _STL::allocator<char> const &)" (??0?$basic_regex@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@QAE @ABV?$allocator@D@_STL@@@Z) test1.obj : error LNK2019: unresolved external symbol "public: __thiscall boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >::~reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >(void)" (??1?$reg_expression@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@ QAE@XZ) referenced in function "public: __thiscall boost::basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >::~basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >(void)" (??1?$basic_regex@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@QAE @XZ) how to solve it? thanks. _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

I build the regex libs with vc7.1-stlport. Then I test it:
#include <boost/regex.hpp>
int _tmain(int argc, _TCHAR* argv[]) { boost::regex ex; return 0; }
how to solve it? thanks.
The most likely cause of this is an incorrect STLPORT_PATH set when you built the libraries (ie the libraries were not built against STLPort). But see also my post to "tweety". John.
participants (2)
-
John Maddock
-
猛 许