Mail Archives: djgpp/1998/01/21/18:39:40
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
- Raw text -