g++ include problem...

Kit Plummer plug-devel@lists.PLUG.phoenix.az.us
Sat Jul 14 07:53:01 2001


I know this is a retarded question, but I have scoured the Internet for
the answer.

I am trying to compile a simple "hello world" with g++ and it errors
with:

iostream.h : No such file found

After searching for the file it IS located in the directory:

/usr/include/g++-3

I have tried to things to fix this:

export CPLUS_INCLUDE_PATH=/usr/include/g++-3

and

g++ hello.C -I /usr/include/g++-3 -o hello

Neither cheat worked.

BTW: I am running a RH7.1 install.

Any ideas would be greatly appreciated.

- Kit