Date: Wed, 19 Apr 2000 10:25:09 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Paul Edwards cc: djgpp AT delorie DOT com Subject: Re: Troubles! In-Reply-To: <20000419034811.26736.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 19 Apr 2000, Paul Edwards wrote: > gcc -o cprog.exe cprog.c > > it repies by saying > > cprog.c:1: iostream.h : No such file or directory (ENOENT). Rename your source to cprog.cc or cprog.cpp. When the compiler sees a .c extension, it treats the source as a C program by default, and doesn't search the C++ include directory (which is where iostream.h lives). This is explained in section 8.3 of the FAQ, which gives further details.