#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 , 15 years ago
comment:2 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Note:
See TracTickets
for help on using tickets.
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.