Mail Archives: djgpp/1998/02/12/06:45:37
Gerfried Wanker wrote:
>
> After installing the latest version of djgpp according to the
> instructions coming with it, compiling c++ programs gives a compiler
> error such as:
>
> prog.c:2: iostream.h: no such file or directory (ENOENT)
>
> the necessary packages *have been installed*
> Can anyone help me with this?
> Thanks
_If_ iostream.h is in DJGPP/lang/cxx _and_ you can
compile ordinary C, you probably
tried to compile with
gcc -o foo.exe foo.c
Try
gcc -o foo.exe foo.C
and it should work. This is, however not recommended, because
it can get you into interesting trouble concerning upper case
lower case issues that you can easily do with out. Rather
use .cc as the extension and gxx, because it automagically
adds libiostream to your program:
gxx -o foo.exe foo.cc
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -