delorie.com/archives/browse.cgi | search |
Date: | Wed, 19 Apr 2000 10:25:09 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Paul Edwards <bin_kicker AT hotmail DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Troubles! |
In-Reply-To: | <20000419034811.26736.qmail@hotmail.com> |
Message-ID: | <Pine.SUN.3.91.1000419102237.10023W-100000@is> |
MIME-Version: | 1.0 |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |