Newsgroups: comp.os.msdos.djgpp From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann) Subject: Re: Trouble coding with C++ References: X-Newsreader: News Xpress 2.01 Date: Sat, 03 Jul 1999 10:32:16 GMT NNTP-Posting-Host: ppp36-10.hrz.uni-bielefeld.de Message-ID: <377de6b2.0@news.uni-bielefeld.de> X-Trace: 3 Jul 1999 12:32:18 +0200, ppp36-10.hrz.uni-bielefeld.de Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article , "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 >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