gcc problems
I am pretty new to linux. I am using Fedora Core 5. I am trying to install gcc, because I need to use it for a programming class. I have used c compilers in windows before. I installed gcc using yum this is what i typed to search for the file I wanted:
[/B] [physicsgirl@localhost ~]$ yum list available | grep gcc compat-gcc-32-c++.i386 3.2.3-55.fc5 core compat-gcc-32-g77.i386 3.2.3-55.fc5 core compat-libgcc-296.i386 2.96-135 core gcc-gnat.i386 4.1.1-1.fc5 updates gcc-java.i386 4.1.1-1.fc5 updates gcc-objc.i386 4.1.1-1.fc5 updates gcc-objc++.i386 4.1.1-1.fc5 updates [physicsgirl@localhost ~]$ I put my Fedora install DVD in to try to install from the RPMS files on it just in case I did something wrong, but It said a newer version was already installed, so I'm assuming the program is installed correctly. Now I only need to know how to start it up? Thanks |
From a commandline try gcc --help or man gcc,
This should you give you more info. |
You should have it already installed. Just type
gcc -v should give you what version you have You can use a utility like kate which is similar to notepad or you can learn vim or emacs. |
Quote:
# gcc -o outputfile yourporgram.c it will create a binary named outputfile and you will be able to execute it (./outputfile) PS: thats just the easier/simpliest way to do it; as lordtweety, man gcc is your friend ;) |
Thanks everyone that really helped out a lot. I was expecting a window to pop up, but now it makes sense. I type the source file in a text editor and save it as a .c file and then just use gcc to compile it. Right? :)
|
All times are GMT -5. The time now is 06:54 PM. |