Error including stl_map.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux