where is iostream.h, fstream.h, ...

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue Jul 11 18:06:00 GMT 2000


They are in backward.

Add:  -Ibackward to your gcc command line to make them visible.  Actually
you have to add the full path to where they are installed.  E.g.:

S rittle@latour; cat >t.C
#include <iostream.h>
int main(){cout <<"hi"<<endl;}
S rittle@latour; /usr/local/beta-gcc/bin/g++ t.C
t.C:1:21: iostream.h: No such file or directory
S rittle@latour; /usr/local/beta-gcc/bin/g++ -I/usr/local/beta-gcc/include/g++-v3/backward t.C
S rittle@latour; a.out
hi

Regards,
Loren


More information about the Libstdc++ mailing list