Boost logo

Boost Users :

Subject: Re: [Boost-users] How to compile boost regex
From: John Maddock (john_at_[hidden])
Date: 2009-09-18 06:29:15


> I am compiling the program using the following option
> g++ -ggdb -lboost_regex
> -o regex regex.cpp but it is giving error.

As noted in the documentation, captures are only enabled when
BOOST_REGEX_MATCH_EXTRA is defined both when building that specific example,
and when the regex library was also built with that defined. See
http://www.boost.org/doc/libs/1_40_0/libs/regex/doc/html/boost_regex/captures.html#boost_regex.captures.repeated_captures

HTH, John.

PS Note that regular Perl-style marked sub-expressions are *always*
supported regardless of BOOST_REGEX_MATCH_EXTRA being set.


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