Mail Archives: djgpp/1999/12/02/20:37:41
what program are you using to compile? (ie gxx?)
With best regards
* * * * * * * * * * * * * * * * * * * *
Leøn
* * * * * * * * * * * * * * * * * * * *
Mastering Solutions
(design and development)
www.bigfoot.com/~xt_contact
www.powerup.com.au/~lvz/resume/entry.htm
>
> > Thanks for the correction. But now the error message becomes like this.
> > I don't know what my mistake is.
> >
> > =====Error Message 1=====
> > hello.cpp: In function `int main()':
> > hello.cpp:5: `std' undeclared (first use this function)
> > hello.cpp:5: (Each undeclared identifier is reported only once
> > hello.cpp:5: for each function it appears in.)
> > hello.cpp:5: parse error before `::'
> >
> > =====Source Code 1=====
> > #include <iostream.h>
> >
> > int main()
> > {
> > std::cout << "Hello, World\n";
> > return 0;
> > }
> >
> > =====Error Message 2=====
> > c:/djgpp/tmp\ccdaaaaa(.text+0x1e):hello.cc: undefined reference to
`cout'
> > c:/djgpp/tmp\ccdaaaaa(.text+0x23):hello.cc: undefined reference to
> > `ostream::ope
> > rator<<(char const *)'
> >
> > =====Source Code 2=====
> > #include <iostream.h>
> >
> > int main()
> > {
> > cout << "Hello, World\n";
> > return 0;
> > }
- Raw text -