On 1/17/07, kathir resh <[EMAIL PROTECTED]> wrote:

i am a basic learner of c...............i think the header file must be
#include<string.h>


No. <string.h> is the C header for things like memcpy() and strcmp(). The
code below is C++, and the equivilant header is <cstring>
In C++ <string> is the header file for the std::string class.

*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...!



--
PJH

#ifdef __LITERAL_BIBLICAL_FUNDEMENTALISM
#define PI 3 /* 1 Kings 7:23 */
#endif

Reply via email to