This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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.


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