From: "MarkL" Newsgroups: comp.os.msdos.djgpp Subject: Re: Can't compile Hello World!!! Date: Mon, 8 Mar 1999 18:20:38 -0000 Organization: [posted via Easynet Ltd] Lines: 32 Message-ID: <7c14vr$1t8u$1@quince.news.easynet.net> References: <7c0l5l$1dt$1 AT nnrp1 DOT dejanews DOT com> NNTP-Posting-Host: leavym.easynet.co.uk X-Trace: quince.news.easynet.net 920917819 62750 212.212.99.225 (8 Mar 1999 18:30:19 GMT) X-Complaints-To: abuse AT easynet DOT net NNTP-Posting-Date: 8 Mar 1999 18:30:19 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm sure someone will correct me if i'm wrong. But i think you need to include iostream.h for cout to work. john_maple AT yahoo DOT com wrote in message <7c0l5l$1dt$1 AT nnrp1 DOT dejanews DOT com>... >I have been having major problems compiling even the simplest of programs >with DJGPP. I got snagged by the common LFN problem and fixed that. Now >however, I get compilation errors even on "Hello World!" If I compile within >RHIDE and say "Build All" the object file gets created but in the file >compile to the .exe, it fails. > >If I compile directly on the DOS command line with "gcc hello.cc -o >hello.exe" I get the following errors: > >c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to `cout' >c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to >`ostream::operator(char const *)' > >Can anyone help me? This is so frustrating because DJGPP v1 ran fine for me >from the get-go, but I have just been having one problem after another with >v2. I am not a major C++ expert, I'm just trying to learn and improve. > >Thanks in advance.... > >-John Maple > >-----------== Posted via Deja News, The Discussion Network ==---------- >http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own