From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Total confusion Date: Sun, 10 Dec 2000 09:51:09 GMT Organization: always disorganized Lines: 33 Message-ID: <3a33520b.2095487@news.freeserve.net> References: <3a32cadb DOT 50776237 AT news DOT freeserve DOT net> NNTP-Posting-Host: modem-159.bar-goby.dialup.pol.co.uk X-Trace: newsg1.svr.pol.co.uk 976441869 18519 62.136.228.159 (10 Dec 2000 09:51:09 GMT) NNTP-Posting-Date: 10 Dec 2000 09:51:09 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Shea F. Kenny wrote: > >Try the following program. If this doesn't compile, then something's > >wrong with your set-up. > > > >// Hello World for C++ > >#include > >int main() > >{ > > std::cout << "Hello, world!\n"; > >} > > Compiler says there's no iostream file. I can think of three possible reasons for this: (1) You gave the file a name ending in .c (instead of .cpp or .cc) and you compiled with gcc (instead of gpp). This would cause the compiler to think it was a C program, and not look in the C++ include directory. (2) You haven't installed the C++ parts of DJGPP. You should have a lang\cxx directory (which contains the iostream file, among other things). (3) You have a very old version of DJGPP. (For C++ you really need the latest version of the GNU compiler.) If you can't get it working, you may be better off removing everything and downloading the latest stuff from http://www.delorie.com/djgpp/ - use the zip-picker to help you decide which files you need and remember to select C++. The versions of DJGPP supplied with books often seem to cause problems.