Operating System - Linux
1748085 Members
5238 Online
108758 Solutions
New Discussion юеВ

Re: IA64 Problems with typedef map<>

 
SOLVED
Go to solution
Philip Reyniers
Advisor

IA64 Problems with typedef map<>

Can someone please explain to me what has changed with using map. In the HP-UX 11iv1 and 11iv2 PA-RISC world, I can compile the code snippet, listed below, with out a hitch; however, IA64 complains with the following error:

----------START SoftBench aCC Error----------

aCC -c -D_PSTAT64 -D_HPUX11i_ -g0 -y ...
"src/hpux/../../include/hpux/./cdevicestat.h", line 94: error #2864: map is not a template
typedef mapMAP_TD_DNMM;

----------STOP SoftBench aCC Error----------


----------START CODE SNIPPET----------

#include

struct dev_name_to_major_minor {
char *ptrDevName;
unsigned int devmajor;
unsigned int devminor;
};

typedef mapMAP_TD_DNMM;

----------STOP CODE SNIPPET----------

Has the functionality of map changed from HP-UX version 11iv2PA to 11iv2IA? If so, how and what style, format, and compiler options should I change? My hunch is that I may have a compiler flag missing, but I am not sure. Thanks in advance to all that respond.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: IA64 Problems with typedef map<>

The default on IPF is (almost) -AA.
You'll have to use std::map.
Or provide "namespace std {} using namespace std;"
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,5520,00.html
Philip Reyniers
Advisor

Re: IA64 Problems with typedef map<>

Dude, you were on the money. Add the -AA and tighten up the namespacing and it works. Thanks.
Philip Reyniers
Advisor

Re: IA64 Problems with typedef map<>

worked like a champ. :-)