|
Boost Users : |
From: admin_at_[hidden]
Date: 2006-03-20 10:31:06
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_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@boost@@AAEAAV12_at_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_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@boost@@QAEAAV12_at_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_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$allocator_at_U?$sub_match_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@boost@@@3_at_U?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@re_detail_at_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_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$allocator_at_U?$sub_match_at_Vconst_iterator@?$basic_string_at_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_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$allocator_at_U?$sub_match_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@boost@@@3_at_U?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@re_detail_at_boost@@QAE_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@0AAV?$match_results_at_Vconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$allocator_at_U?$sub_match_at_Vconst_iterator@?$basic_string_at_DU?$
xp_regex_match fatal error LNK1120: 3 unresolved externals
Any feedback is appreciated. Thanks!
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