
Hi, I have a newbie question here. I'm trying to use the Boost regex in an application, but I keep getting strange errors. How can I compile the regex code into a DLL or LIB that I can link to from my app -- I'm looking for the path of least resistance here. The version is 1.33.1, the platform is VC++ 7.1. The most recent error is the following: xp_regex_match error LNK2019: unresolved external symbol "private: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __thiscall boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::do_assign(char const *,char const *,unsigned int)" (?do_assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@AAEAAV12@PBD0I@Z) referenced in function "public: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __thiscall boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::assign(char const *,char const *,unsigned int)" (?assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@QAEAAV12@PBD0I@Z) xp_regex_match error LNK2019: unresolved external symbol "public: bool __thiscall boost::re_detail::perl_matcher<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::allocator<struct boost::sub_match<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator>
,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > ::find(void)" (?find@?$perl_matcher@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@U?$sub_match@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@@3@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QAE_NXZ) referenced in function "bool __cdecl boost::regex_search<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::allocator<struct boost::sub_match<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> ,char,struct boost::regex_traits<char,class boost::w32_regex_traits<char>
(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class boost::match_results<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::allocator<struct boost::sub_match<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> > > &,class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > const &,enum boost::regex_constants::_match_flags,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator)" (??$regex_search@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@U?$sub_match@Vconst_iterator@?$basic_string@DU?$char_t xp_regex_match error LNK2019: unresolved external symbol "public: __thiscall boost::re_detail::perl_matcher<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::allocator<struct boost::sub_match<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> ,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > ::perl_matcher<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::allocator<struct boost::sub_match<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> ,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > (class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class boost::match_results<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class std::allocator<struct boost::sub_match<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> > > &,class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > const &,enum boost::regex_constants::_match_flags,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator)" (??0?$perl_matcher@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@U?$sub_match@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@@3@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QAE@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AAV?$match_results@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@U?$sub_match@Vconst_iterator@?$basic_string@DU?$ xp_regex_match fatal error LNK1120: 3 unresolved externals
Any feedback is appreciated. Thanks!