egcs-ss: Can't find include files...

Craig Jones craig@msmri.medicine.ubc.ca
Mon Apr 26 11:54:00 GMT 1999


I installed egcs-ss-19990418-1.i386.rpm (and C++,G77,libstdc++) onto a
Linux Redhat 5.2 machine.

I am trying to compile a simple program but I get this:

[craig@genu]$  g++ -c bob.cpp
g++: bob.cpp: No such file or directory
g++: No input files

The top of bob.cpp is a "#include <iostream>", but it can not seem to
find it.

It works if I do "g++ -I/usr/include/g++ -c bob.cpp".

How do I get it to look in /usr/include/g++ by deafult?

Thanks.

Craig.
craig@msmri.medicine.ubc.ca



More information about the Gcc-bugs mailing list