
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
,struct boost::regex_traits
::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 ::const_iterator,class std::allocator ::const_iterator> ,char,struct boost::regex_traits (class std::basic_string
::const_iterator,class std::basic_string ::const_iterator,class boost::match_results ::const_iterator,class std::allocator ::const_iterator> > > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags,class std::basic_string ::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 ::const_iterator,class std::allocator ::const_iterator> ,struct boost::regex_traits ::perl_matcher ::const_iterator,class std::allocator ::const_iterator> ,struct boost::regex_traits (class std::basic_string ::const_iterator,class std::basic_string ::const_iterator,class boost::match_results ::const_iterator,class std::allocator ::const_iterator> > > &,class boost::basic_regex > const &,enum boost::regex_constants::_match_flags,class std::basic_string ::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!