Mail Archives: djgpp/1999/06/09/19:55:43
Hi
What are the header file that you are including ?
GCC is the only compiler (front end for comiler) to compile C, C++, Object
C, .........
That error message means that you are not having proper libraries to link
with !
Thanks
----- Original Message -----
From: Nate Eldredge <nate AT cartsys DOT com>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Tuesday, June 08, 1999 7:57 PM
Subject: Re: Beginner question
> Christian Kastner wrote:
> >
> > I would like to know if somebody could help me with this problem:
> >
> > I always run the "Hello World" program to test a compiler I just
installed,
> > but in DJGPP's case, I can't compile it, the compiler always says
> >
> > C:\WIN\TEMP\cccydbbl(.text+0x15):hello.cpp:undefined reference to 'cout'
> > C:\WIN\TEMP\cccydbbl(.text+0x1a):hello.cpp:undefined reference to
> > 'ostream::operator<<(char const *)'
> >
> > The program works with the Symantec-C++-Compiler, so I guess I goofed up
the
> > installation somewhere allthough I did it according to the readme-file.
>
> Did you use `gxx' instead of `gcc' to compile? The readme does say to
> do that.
>
> If not, please post the complete command you did use.
>
> > I would also like to know which compiler you guys would prefer, Symantec
or
> > GCC.
>
> This isn't exactly the best place to get an unbiased opinion. Yes, I
> prefer GCC.
> --
>
> Nate Eldredge
> nate AT cartsys DOT com
- Raw text -