Opened 9 years ago

Closed 9 years ago

Last modified 9 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:
Has a Patch: no 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 Changed 9 years ago by PieterPanman

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 Changed 9 years ago by anevilyak

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 Changed 9 years ago by stargater

Ok thanks i have fix it in my app.

Note: See TracTickets for help on using tickets.