Operating System - HP-UX
1753767 Members
5993 Online
108799 Solutions
New Discussion

Getting error "map" has already been declared in the current scope

 
Ranjit_Jamdar
Occasional Contributor

Getting error "map" has already been declared in the current scope

Getting error "map" has already been declared in the current scope

I am getting the following error during compilation on itanium HPUX11.23:

"/opt/aCC/include/map", line 100: error #2101: "map" has already been declared in the current scope

 GCC version is 4.1.1

please help to resolve this issue.

 

2 REPLIES 2
Mani_Np
HPE Pro

Re: Getting error "map" has already been declared in the current scope

Based on the error , the issue seems to be with source code of the program.

Please note that GCC 4.1.1 is a opensource product , latest is available http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.3/

And I would suggest you to use Ansi C purchased through HPE, which is well tested and supported by HPE.

Regards,
Manikandan
I work for HPE

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: Getting error "map" has already been declared in the current scope

Perhaps you should try removing from the compile line any include paths (specified with "-I") that start with "/opt/aCC/include".

 
--
ranga
[i work for hpe]

Accept or Kudo