Use virtual PC compile C

Posted on 2005-05-16
Last Modified: 2013-12-06
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?
Question by:ddlam
    LVL 6

    Accepted Solution

    Are you sure you install the compiler
    I don't think its a default option

    LVL 2

    Expert Comment

    Try compiling your program with gcc.

    $gcc -o program program.c

    Run your program  : ./program
    LVL 7

    Expert Comment

    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 .

    LVL 2

    Expert Comment

    You can try compiling with

    $c++ -o program program.c


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now