Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#5512 closed bug (invalid)

gcc4 map.h error

Reported by: stargater Owned by: nobody
Priority: normal Milestone: R1
Component: System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description

Hi, i code a Application i used #include <map.h> when i compile with gcc2 i have no error, when i used gcc4 the dont found map.h.

Change History (3)

comment:1 by PieterPanman, 15 years ago

Probably be related to http://gcc.gnu.org/gcc-4.3/porting_to.html. If I'm not mistaken those headers are removed for newer GCCs.

comment:2 by anevilyak, 15 years ago

Resolution: invalid
Status: newclosed

Indeed, the .h versions are deprecated, and the standard #include <map> should be used instead (this will work on both compilers). Bear in mind however that gcc4 actually respects namespaces properly so you will have to either do "using std::map;" or explicitly qualify the namespace when using it.

comment:3 by stargater, 15 years ago

Ok thanks i have fix it in my app.

Note: See TracTickets for help on using tickets.