This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
error when including stl_vector.h (gcc 3.4.0)
- From: "Backhaus Willy" <w dot backhaus at newage-avkseg dot com>
- To: <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 16 Jul 2004 12:31:15 +0200
- Subject: error when including stl_vector.h (gcc 3.4.0)
hello,
I updated the gcc for the arm-elf platform to 3.4.0. when I'm trying to
compile a test program I get following error message:
In file included from /gnutools/arm-elf/include/vector:71,
from libs/test/TestSTL.cpp:4:
/gnutools/arm-elf/include/bits/stl_vector.h:140: error: `allocator' has not
been declared
/gnutools/arm-elf/include/bits/stl_vector.h:140: error: expected `>' before
'<' token
/gnutools/arm-elf/include/bits/stl_vector.h:140: error: expected
unqualified-id before '>' token
/gnutools/arm-elf/include/bits/stl_vector.h:140: error: expected `;' before
'>' token
/gnutools/arm-elf/include/bits/stl_vector.h:876: error: expected `,' or
`...' before '<' token
/gnutools/arm-elf/include/bits/stl_vector.h:877: error: `bool
_GLIBCXX_STD::operator==(int)' must have an argument of class or enumerated
type
/gnutools/arm-elf/include/bits/stl_vector.h:877: error: `bool
_GLIBCXX_STD::operator==(int)' must take exactly two arguments
/gnutools/arm-elf/include/bits/stl_vector.h: In function `bool
_GLIBCXX_STD::operator==(int)':
/gnutools/arm-elf/include/bits/stl_vector.h:878: error: `__x' undeclared
(first use this function)
/gnutools/arm-elf/include/bits/stl_vector.h:878: error: (Each undeclared
identifier is reported only once for each function it appears in.)
/gnutools/arm-elf/include/bits/stl_vector.h:878: error: `__y' undeclared
(first use this function)
/gnutools/arm-elf/include/bits/stl_vector.h:879: error: no matching function
for call to `equal(<type error>, <type error>, <type error>)'
/gnutools/arm-elf/include/bits/stl_vector.h: At global scope:
/gnutools/arm-elf/include/bits/stl_vector.h:895: error: expected `,' or
`...' before '<' token
/gnutools/arm-elf/include/bits/stl_vector.h:896: error: `bool
_GLIBCXX_STD::operator<(int)' must have an argument of class or enumerated
type
/gnutools/arm-elf/include/bits/stl_vector.h:896: error: `bool
_GLIBCXX_STD::operator<(int)' must take exactly two arguments
/gnutools/arm-elf/include/bits/stl_vector.h: In function `bool
_GLIBCXX_STD::operator<(int)':
/gnutools/arm-elf/include/bits/stl_vector.h:897: error: `__x' undeclared
(first use this function)
/gnutools/arm-elf/include/bits/stl_vector.h:898: error: `__y' undeclared
(first use this function)
and so on..
the same program get compiled with gcc-3.4-20040310 prerelease.
I use arm-elf-gcc with cygwin.
any hints?
regards,
Willy