Mail Archives: djgpp/1999/07/03/07:59:40
In article <dHef3.898$Pd2 DOT 3496 AT cabot DOT ops DOT attcanada DOT net>, "ES" <a AT a DOT a> 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*)
>
>Can anyone plesase let me know how to solve this problem? Thanks :)
>
>
Take a look at section 1 of the FAQ. You will be able to solve this problem
then. It might very well be, that you come across some ohter problems in the
future, and I suggest you read the other sections in the FAQ in this case.
You're welcome.
--
Manni
- Raw text -