unable to open C program and run it in Fedora 12

Suvayu Ali fatkasuvayu+linux at gmail.com
Sat Oct 23 23:42:36 UTC 2010


Hello Aniket,

First a few guidelines/etiquette for the mailing list:

1. It is both good and polite practice to start a *new* discussion
    thread by composing a new message rather than responding to an on
    going discussion.
2. Being a little more descriptive about your problems help us help
    you better.

On Saturday 23 October 2010 12:07 PM, Aniket Sengupta wrote:
> Hello dear, I am an user of Fedora-12(64 bit) version. But, please
> tell me the methods of performing a C/C++ program and run it. Please
> tell me also how can I compile that type of programs.
>

Are you trying to compile a C/C++ program that you wrote? If so, you
need to first check whether you have the appropriate compilers
installed. In a terminal try these commands,

$ rpm -qa gcc*

If in the output you see something like this,

...
gcc-c++-4.4.4-10.fc13.x86_64
gcc-4.4.4-10.fc13.x86_64
..

Then you are good to go. If not, then install those packages. From a
terminal first switch to the "root" user and use yum to install the
packages like this,

$ su -
Password:
# yum install gcc gcc-c++

After that from another terminal go to the directory with your C/C++
source files and compile like this,

$ g++ -o myprogram.exe mycpp_program.cxx

> Regards,!!!Aniket Sengupta!!!
> (INDIA)
>

Good Luck

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list