Date: Mon, 7 May 2001 09:13:12 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Ambuhl cc: djgpp AT delorie DOT com Subject: Re: need help In-Reply-To: <3AF62EB7.82D0792F@earthlink.net> 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 Sun, 6 May 2001, Martin Ambuhl wrote: > > C:\>gcc hello.cpp -o hello.exe -lm > > In file included from hello.cpp:1: > > c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory > > (ENOENT) > > You are trying to compile and link C++ code as C. See your documentation for > details on using gpp instead of gcc Using gcc instead of gpp might be a reason for link errors, but not for compilation errors. When gcc sees a.cpp file, it knows that it is a C++ program. The error message above comes from the preprocessor, not from the linker. As I wrote elsewhere in this thread, section 8.3 of the FAQ discusses this problem.