Error when I try to compile a basic exemple of boost::regex

Z

Zorg

Hello,

I try to compile this example :

http://www.boost.org/libs/regex/example/snippets/captures_example.cpp

but I get this error :

~/developpement/essai_regex/boost$ g++ -o test captures_examples.cpp
captures_examples.cpp: In function «void print_captures(const
std::string&, const std::string&)":
captures_examples.cpp:43: erreur: «class boost::smatch" has no member
named «captures"
captures_examples.cpp:49: erreur: «class boost::smatch" has no member
named «captures"


I have already installed this library :

ii libboost-regex-dev
1.34.1-2ubuntu1 regular expression library for
C++
ii libboost-regex1.34.1
1.34.1-2ubuntu1 regular expression library for
C++


somone have an idee to resolved this problem please?

Thanks for your attention.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,231
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top