This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bitset problems in 1122 snapshot


The makefile in libstdc++ doesn't install bitset, so that's probably my
first clue.
After installing bitset, I got an error on line 726 about a syntax error.
This
was a #if conditional, and changing to an #ifdef instead got past that one.

After that, I see the following errors:
/usr/local/egcs/include/g++-2/bitset:630: parse error before `>'
/usr/local/egcs/include/g++-2/bitset:635: warning: ANSI C++ forbids
declaration `_M_copy_from_string' with no type
/usr/local/egcs/include/g++-2/bitset:635: warning: ANSI C++ forbids
initialization of member `_M_copy_from_string'
/usr/local/egcs/include/g++-2/bitset:635: warning: making
`_M_copy_from_string' static
/usr/local/egcs/include/g++-2/bitset:635: ANSI C++ forbids in-class
initialization of non-const static member `_M_copy_from_string'
/usr/local/egcs/include/g++-2/bitset:635: confused by earlier errors,
bailing out

I'm new to ANSI C++, so can't figure out what the hell is wrong.
The bitset class was my main motivation for switching to C++, so I'm stuck
right now.

Since I see this on both Linux and the Alpha, I'm sure its not system
specific.
Does anyone know what's needed to make bitset work?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]