Message-Id: <200006100510.IAA18036@alpha.netvision.net.il> Date: Sat, 10 Jun 2000 08:09:37 +0200 X-Mailer: Emacs 20.6 (via feedmail 8.1.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" To: djgpp AT delorie DOT com In-reply-to: <3941BDCA.1635ABAC@no.spam.pls> (message from jsfw on Sat, 10 Jun 2000 12:02:18 +0800) Subject: Re: COUT problem in a small program References: <3941BDCA DOT 1635ABAC AT no DOT spam DOT pls> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: jsfw > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 10 Jun 2000 12:02:18 +0800 > > C:\djgpp>gcc -c Wall hello.c > > gcc.exe: Wall: No such file or directory (ENOENT) > hello.c:1: iostream.h: No such file or directory (ENOENT) Rename your program to hello.cc or hello.cpp. When the compiler sees a file with a .c extension, it handles it as a C program, not a C++ program, and doesn't search the C++ include directories. This is in the FAQ, btw (section 8.3). New users are encouraged to download and install the FAQ (v2/faq230b.zip from the same place you get DJGPP) and look there whenever they have problems, before posting here. The FAQ is quite large, but you can use the indices near its end to quickly find the subject(s) you need.