Fedora Core3

Hello to all.
I'm running Fedora Core3.
Two Questions.

  1. I wrote a simple C program starting: # include <stdio.h>
    I gave it to the compiler: gcc -o program program.c and got
    stdio.h: no such file or directory, although it did compile this simple
    program, I'm sure when stdio.h is needed,it won't.
    I looked in /usr/include and sure enough it wasn't there.

  2. I have tried for weeks to compile C++ on the same OS I have used every
    conceivable combination to try to invoke the compiler.
    I know it's in there, but where? In Red Hat 7 it was easy: g++ program.cpp
    Again I looked in /usr/include and there it was C++

Any help would be much appreciated

  1. you don't have standard headers installed? try installing development packages.
    if your headers are installed somewhere else, you can use:
    gcc -I/somewhere/else -o program program.c

  2. do you have g++?
    you can send c++ files to gcc too, you'll need to link -lstdc++ if you're going to use c++ standard library, though.