Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

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

 
Highlighted
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
Highlighted
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

Highlighted
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