Date: Wed, 21 Jan 1998 15:38:47 -0800 (PST) Message-Id: <199801212338.PAA05726@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: ngc7000 AT gong DOT snu DOT ac DOT kr (Kim,Young-Jae), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: [Q] Can djgpp compile the C++ source ??? Precedence: bulk At 10:31 1/21/1998 GMT, Kim,Young-Jae wrote: >Hi all... >I'm a beginner of DJGPP... >I've received some binary files in http://www.delorie.com/dgjpp >and installed to the directory c:\djgpp, and done all things in the >web page describing to install... >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"... > >The following is my source code... > >Plz, let me know whether djgpp can compile C++ code or not !!! [source snipped] Yes, it can. Most likely your problem is an incorrect setting of the DJGPP environment variable. Reread the README.1ST file (get it if you haven't) and make sure you have added the appropriate lines to AUTOEXEC.BAT. Please post the things requested in FAQ section 6.12 if this does not resolve your problem. A similar error is caused by not linking the C++ libraries. README.1ST explains this too, but try using `gxx' instead of `gcc' to compile and see if the problem goes away. Nate Eldredge eldredge AT ap DOT net