[Regex] Compile error in char_regex_traits.hpp with gcc 3.3.1

Hi, All I've got a compile error(please see below) while trying to compile my simple program with gcc 3.3.1 and boost 1.41.0. The strange thing is that I was able to compile the program before, but got the error after I had moved the line "include <boost/regex.hpp>" from .cpp file to .h file. At least that's what I think, maybe I've changed something I don't remember about. Anyway, it looks like I have the error even before my code starts compiling. I don't understand the error message at all. Where is this "__attribute__"? I tried to google it but found nothing. I would appreciate any help The error: In file included from d:/pnw/06072009/build/incsys/boost/regex/v4/regex.hpp:55, from d:/pnw/06072009/build/incsys/boost/regex.hpp:31, from d:/pnw/06072009/be/csvrdeng/csvcursor.h:1, from csvcursor.cpp:2: d:/pnw/06072009/build/incsys/boost/regex/v4/char_regex_traits.hpp:36: error: syntax error before `__attribute__' d:/pnw/06072009/build/incsys/boost/regex/v4/char_regex_traits.hpp:44: error: `char_regex_traits_i' is not a template d:/pnw/06072009/build/incsys/boost/regex/v4/char_regex_traits.hpp:47: confused by earlier errors, bailing out char_regex_traits.hpp(with unnecessary defines and comments omitted): namespace boost{ namespace deprecated{ //line 36 template <class charT> class char_regex_traits_i : public regex_traits<charT> {}; template<> class char_regex_traits_i<char> : public regex_traits<char> // line 44 { public: typedef char char_type; //line 47 typedef unsigned char uchar_type; typedef unsigned int size_type; typedef regex_traits<char> base_type; }; } // namespace deprecated } // namespace boost -- Regards, Alexandr

I've got a compile error(please see below) while trying to compile my simple program with gcc 3.3.1 and boost 1.41.0. The strange thing is that I was able to compile the program before, but got the error after I had moved the line "include <boost/regex.hpp>" from .cpp file to .h file. At least that's what I think, maybe I've changed something I don't remember about. Anyway, it looks like I have the error even before my code starts compiling. I don't understand the error message at all. Where is this "__attribute__"? I tried to google it but found nothing. I would appreciate any help
I've never seen that before, do you have a test case? Thanks, John.
participants (2)
-
John Maddock
-
Olexandr Marchenko