Re: unable to open C program and run it in Fedora 12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux