This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Error including stl_map.h
- From: Jason dot Majors at metriscompanies dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 9 Mar 2004 16:31:47 -0700
- Subject: Error including stl_map.h
I'm using stl maps with g++ 3.3.0 on AIX 4.3.3. When I try to compile the
code I get the following errors from including bits/stl_map.h.
/usr/local/include/c++/3.3/bits/stl_map.h:118: error: template-id `
_Rb_tree<_Key, std::pair<const _Key, _Tp>,
std::_Select1st<std::pair<const
_Key, _Tp> >, _Compare, _Alloc>' used as a declarator
/usr/local/include/c++/3.3/bits/stl_map.h:118: error: parse error before
`;'
token
(It continues on, but all subsequent errors appear to be because the
parser is now lost).
Do I need to include something else, or change a setting in my Makefile to
get this to work?
Thanks.