From: "ES" Newsgroups: comp.os.msdos.djgpp Subject: Trouble coding with C++ Lines: 11 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Sat, 03 Jul 1999 02:36:57 GMT NNTP-Posting-Host: 142.194.59.56 X-Trace: cabot.ops.attcanada.net 930969417 142.194.59.56 (Sat, 03 Jul 1999 02:36:57 GMT) NNTP-Posting-Date: Sat, 03 Jul 1999 02:36:57 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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 :)