
4 Dec
2005
4 Dec
'05
2:24 a.m.
Hi, from Japan.I'm pretty new to c++ and I'm trying to work out on regex. When I compile these lines,it ends with "undefined reference to ..." Please let me know how to use regex properly. I use on FC4 and newest boost version,compiling in Anjuta. ****************************** #include <iostream> #include <boost/regex.hpp> using namespace std; using namespace boost; int main() { const char* re ="[0-9]"; regex expression(re); const char* str= "1234567890"; cmatch what; regex_match(str,what,expression); } *******************************