Boost logo

Boost Users :

From: hallouina-ml_at_[hidden]
Date: 2007-11-11 18:55:00


Hello everybody,

I begin with C++ and need to use some regex in my program. So I try to
compile this example from the boost website :

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++

I supposed that the exemple from the official website is right. So the
problem must come from my configuration. I already try this compilation
option :

-lboostregex -lboost_regex -lboost-regex -lboost_regex_dev
-lboost_regex-1_34_1 -lboost_regex-mt-d-1_34_1.....

But I always get the same error.

somone have an idee to resolved this problem please? Some clue...?

Thanks for your attention.

Zorg.

      _____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail


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