Mail Archives: djgpp/1999/07/03/13:45:26
ES wrote:
>
> Hello, I am a djgpp beginner who started using djgpp yesterday.
> I downloaded all files, unzipped them all in a folder and edited autoexec.
> First i made a little program with C and compiled it by typing " gcc
> hello.c" Then made a program using C++, (#include <iostream.h>
> ain(){ cout<<"hello\n"; return 0;}) and compiled the file. gcc hello.cpp but
> an error occured. It says.. undefined reference to cout and undefined
> reference to ostream::operator<<(char const*)
See README.1ST. Basically, you are supposed to use `gxx hello.cpp'.
But that will (for historical reasons) name your executable a.exe, so
you probably want `gxx -o hello.exe hello.cpp'.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -