
18 Sep
2009
18 Sep
'09
10:29 a.m.
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/capture... HTH, John. PS Note that regular Perl-style marked sub-expressions are *always* supported regardless of BOOST_REGEX_MATCH_EXTRA being set.