Ashwin Mittal a écrit : > Hi all, > > I am using HP aC++ ...! > > I am getting this error while compilaing def.cpp... > > The header file in which it has code has > > #ifndef __GHI_H__ > #define __GHI_H__ > #include <string> > > typedef map<string,ABC *> KLM; ---> @ this line it is showing the > following error...! > > extern int pop; > > > > ------------------------------------ > Compiling C++ source def.cpp > Sun Jan 14 16:12:45 2007 > ------------------------------------ > > Error 600: "/abc/ghi.h", line 10 # Type specifier is omitted; "int" is > no longer assumed. > typedef map<string,ABC *> KLM; >
You probably miss #include <map> and typedef std::map< std::string, ABC * > KML; but depend on your aCC flag you are using (with or without -AA )
