Hoping for some help.

Posted by: TommyE

Hoping for some help. - 10/01/2002 14:24

Wondering if some of you programmers out there could help me out a bit.

I've just set up a PC with RedHat Linux 7.2. I want to try to compile some C+ stuff
with GCC. When I try to compile, all I get is :


test.c:2:32: iostream.h: No such file or directory


I guess I'm missing some files here, but being fairly new on Linux I don't know where to start. Am I missing some RPM's???

TommyE
Posted by: jheathco

Re: Hoping for some help. - 10/01/2002 15:02

Someone let me know if I'm wrong, but I'm assuming that using a .c extension (instead of .cpp) and using gcc to compile, you're problem is that the compiler thinks you're compiling a C program, not a C++ program, which uses iostream. Try using g++ and rename the file to test.cpp
Posted by: TommyE

Re: Hoping for some help. - 10/01/2002 15:29

Great thanks.
Now I can compile. Trying the ARM cross compiler now...

Same thing, oh well, guess I'll have to keep trying.

TommyE