Date: Thu, 22 Jan 1998 18:52:06 +0200 (IST) From: Eli Zaretskii To: Michael Numminen cc: djgpp AT delorie DOT com Subject: Re: [Q] Can djgpp compile the C++ source ??? In-Reply-To: <34C72136.2519@emw.ericsson.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 22 Jan 1998, Michael Numminen wrote: > Kim,Young-Jae wrote: > > > > And I typed some source file and command to compile it... > > c:\> gcc arraynew.cpp -o arraynew.exe > > but it reports various error message, which says it cannot load > > "iostream.h"... > > I've found that "iostream.h" is in the directory "c:\djgpp\lang\cxx" > > not in the directory "c:\djgpp\include"... > You must compile with options -lgpp, like this: > > c:\> gcc arraynew.cc -lgpp -o arraynew.exe Sorry, this reply is incorrect. The -lgpp argument has nothing to do with GCC being unable to find the C++ include directory. The most probable cause for the problem is that the DJGPP environment variable is set incorrectly (or not set at all). Please read the file README.1ST again and set that variable to point to your DJGPP.ENV file.