Boost logo

Boost Users :

From: Chandan Nilange (chandan_nilange_at_[hidden])
Date: 2007-07-06 03:14:20


Hello John,

I tried to run the regex_search example on the page
http://www.boost.org/libs/regex/example/snippets/regex_search_example.cpp
with BOOST_LIB_VERSION "1_32"

However, I get the following compilation error
multiple times:

/tmp/ccy6kuZL.o(.gnu.linkonce.t._ZN5boost9re_detail12perl_matcherIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS6_EEENS_12regex_traitsIcEESaIcEEC1ES6_S6_RNS_13match_resultsIS6_S9_EERKNS_14reg_expressionIcSB_SC_EENS_15regex_constants12_match_flagsE+0x7e):
In function
`boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char
const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char
const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >,
boost::regex_traits<char>, std::allocator<char>
>::perl_matcher(__gnu_cxx::__normal_iterator<char
const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
__gnu_cxx::__normal_iterator<char const*,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >,
boost::match_results<__gnu_cxx::__normal_iterator<char
const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char
const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >
>&, boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >
const&, boost::regex_constants::_match_flags)':
: undefined reference to `boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char>
>::get_traits() const'

Please help.

Also, could you please elaborate more on how to
achieve overlapping matches using regex_search.

Regards,
Chandan

--- John Maddock <john_at_[hidden]> wrote:

> Chandan Nilange wrote:
> > Hello,
> >
> > Can boost_regex handle overlapping matches.

> It's not explicitly handled, but it's more or less
> trivial to use
> regex_search to repeatedly search for overlapping
> matches.
>
> John.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
>
http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433


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