LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc comipler in fedora core 2 (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-comipler-in-fedora-core-2-a-681695/)

Rabia 11-06-2008 11:33 PM

gcc comipler in fedora core 2
 
Hey i am new wibe here and for the very first time using the linux operating system (Fedora core 2).
i wanted to know where should we type our source code and wiv which extension we have to sav em in which directory and also tell me how to install the gcc compiler and the compiling executing commands too.

Nylex 11-07-2008 12:44 AM

Firstly, get rid of Fedora 2 and install something that's newer and still supported (Fedora 9?). You will be able to install gcc using your distribution's package manager. If you're going to stick with Fedora, see the documentation on their website for information.

Here's a short guide to using gcc.

Simon Bridge 11-07-2008 01:06 AM

Quote:

Originally Posted by Rabia (Post 3334166)
Hey i am new wibe here and for the very first time using the linux operating system (Fedora core 2).
i wanted to know where should we type our source code and wiv which extension we have to sav em in which directory and also tell me how to install the gcc compiler and the compiling executing commands too.

You type your source code into a text editor and the extension is irrelevent.
It is traditional to save C code with a .c extension and C++ code with a .cpp extension. There is no special extension for executables.

The gcc compiler comes with the fedora core 2 DVD.

Some tips to help you get better responces:
1. You have already been told about upgrading your OS to something recent. If you like fedora - suggest fedora 9 or 10 (when it is out). What you are using is equivalent to using (I'm guessing) Win95. There is no support for it.
See. www.fedorafaq.org

2. Please edit your profile to show your location (and distro - saves typing) as this helps us give you better replies.
See. http://www.linuxquestions.org/questi...do=editprofile

3. Please write properly. People who deliberately write sloppily as you have are often sloppy in other ways as well. You don't want to be confused wih those people.
See. http://www.catb.org/~esr/faqs/smart-...html#writewell

4. The operating system is called GNU - Linux is one of it's kernels. "fedora" is the brand name of the distribution. Most of us get into sloppy habits and forget that newcomers don't always realize these distinctions.
See. http://www.gnu.org/gnu/why-gnu-linux.html

Don't worry - we were all new once.


All times are GMT -5. The time now is 03:02 AM.