Boost logo

Boost Users :

From: shintarou_fujiwara (shin216_at_[hidden])
Date: 2005-12-03 21:24:52


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);
}
*******************************


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