Boost logo

Boost Users :

From: Corey M. Ellis (corey.m.ellis_at_[hidden])
Date: 2004-09-17 18:47:29


Hi,

I am trying to use the regex library (regex_match in particular)
I included "boost/regex.hpp". I get the following errors when compiling
my code.

g++ -W -Wall -Wpointer-arith -O3 -g -pipe -D_REENTRANT
-DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I/usr/local/ACE_wrappers
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I/usr/local/ACE_wrappers
-I/usr/local/include -I/usr/local/include/boost-1_31 -DACE_NTRACE=1
-D__USE_REG_EXPR -c -o .obj/FTP_Task.o FTP_Task.cpp
In file included from /usr/local/include/boost-1_31/boost/cregex.hpp:30,
                 from
/usr/local/include/boost-1_31/boost/regex/v4/regex.hpp:25,
                 from /usr/local/include/boost-1_31/boost/regex.hpp:34,
                 from FTP_Task.h:19,
                 from FTP_Task.cpp:1:
/usr/local/include/boost-1_31/boost/regex/v4/cregex.hpp:75: error:
syntax error
   before numeric constant
/usr/local/include/boost-1_31/boost/regex/v4/cregex.hpp:96: error: ISO C++
   forbids declaration of `reg_comp_flags' with no type
/usr/local/include/boost-1_31/boost/regex/v4/cregex.hpp:100: error: syntax
   error before numeric constant
/usr/local/include/boost-1_31/boost/regex/v4/cregex.hpp:103: error: ISO C++
   forbids declaration of `reg_exec_flags' with no type
make[1]: *** [.obj/FTP_Task.o] Error 1
make[1]: Leaving directory `/home/bipuser/nBIP-9.0/src'
make: *** [NBIP] Error 2

Can sme please shed some light on the problem. I am only using the
regex_match function. I create an expression object, and use
regex_match to match against it.

Thanks in advance for any help.

Corey


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