LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2006, 07:43 PM   #1
physicsgirl
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
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
 
Old 08-26-2006, 10:29 PM   #2
lordtweety
Member
 
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88

Rep: Reputation: 15
From a commandline try gcc --help or man gcc,

This should you give you more info.
 
Old 08-26-2006, 10:43 PM   #3
whk
Member
 
Registered: Jun 2005
Posts: 202

Rep: Reputation: 37
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.
 
Old 08-27-2006, 01:16 AM   #4
jp-lack
Member
 
Registered: Mar 2005
Location: NJ - US
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
Quote:
Originally Posted by physicsgirl
Now I only need to know how to start it up?
to compile a file run

# 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
 
Old 08-27-2006, 06:26 PM   #5
physicsgirl
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC Problems..really need help. RoaCh Of DisCor Linux - Newbie 11 05-10-2005 06:14 PM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
cc (gcc) problems malbery Debian 2 08-23-2004 12:55 PM
GCC problems inanna Red Hat 4 04-28-2004 04:20 PM
Problems with gcc spooodini Linux - Software 5 10-31-2003 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration