--- Ashwin Mittal <[EMAIL PROTECTED]> wrote: > 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; > > > Please help...! > Two things.
First: you need to specify the std namespace typedef std::map<std::string,ABC *> KLM; Second: is ABC defined? You didn't give us enough code to answer these questions. Ray ____________________________________________________________________________________ Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather
