Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#57567 - 10/01/2002 14:24 Hoping for some help.
TommyE
enthusiast

Registered: 08/06/1999
Posts: 356
Loc: NORWAY
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

Top
#57568 - 10/01/2002 15:02 Re: Hoping for some help. [Re: TommyE]
jheathco
enthusiast

Registered: 21/12/2001
Posts: 326
Loc: Mission Viejo, California
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
_________________________
John Heathco - 30gig MKIIa w/ tuner module

Top
#57569 - 10/01/2002 15:29 Re: Hoping for some help. [Re: jheathco]
TommyE
enthusiast

Registered: 08/06/1999
Posts: 356
Loc: NORWAY
Great thanks.
Now I can compile. Trying the ARM cross compiler now...

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

TommyE

Top