Use virtual PC compile C

I am running Fedora on MS virtual PC.

but I am not able to compile C program.

I opened a terminal and input command such as rm, cp, ls. They works fine.

However, when i try:

$cc -o program program.c

it say:

bash: c: command not found

Oh why? Does there have other way to compile C on Fedora?
LVL 9
ddlamAsked:
Who is Participating?
 
knollbertConnect With a Mentor Commented:
Are you sure you install the compiler
I don't think its a default option

0
 
Shan_rocksCommented:
Try compiling your program with gcc.

$gcc -o program program.c

Run your program  : ./program
0
 
surya_prabhakarCommented:
cc is a symbolic link to gcc .
So it should be fine. Please check whether you gcc rpm's installed or else install them from the fedora source cd .

libgcc, gcc etc .

-surya.
0
 
Shan_rocksCommented:
You can try compiling with

$c++ -o program program.c

$./program
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.