Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-01-2003, 11:29 PM   #1
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269

Rep: Reputation: 30
Programming C with RedHat

Hi! I'm quite new to Linux. I'm assuming a C compiler of some sort comes with RedHat Linux (I'm using version 9.0). This may be a dumb question - but how do I use it? I know Java, and I got it installed and working fine, but I would like to learn C, and then C++ sometime after.
I realize there are probably other threads talking about this, but I did a search and couldn't find any.
Can anyone provide me with some direction?
Also, if you know of a good site that helps people like me learn C, please let me know.

Thanks for your time!
Old 11-01-2003, 11:33 PM   #2
Registered: Oct 2003
Location: Saint Louis, Missouri
Distribution: Mandrake 10 Official
Posts: 210

Rep: Reputation: 30
if your just wanted to learn c++ you dont have to learn c first! and it depends on what kinda of progs ur gonna be making... if its just an exacutable with no real graphical interface u can just write it in a text editing program and then save it as "whateveryouwant.c" then just compile that.... as far as compilers go to google and search, sorry i couldnt be any more help
Old 11-01-2003, 11:37 PM   #3
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269

Original Poster
Rep: Reputation: 30
I realize the file extesion is ".c"
But how do I compile and run that? Also, I want to learn C first because I'm going to be taking a course for 2D and 3D Graphics using OpenGl, and it is assumed that we know C, not C++.

THanks for trying though.
Old 11-01-2003, 11:59 PM   #4
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
if you installed the development packages, then just run:

gcc -o executable_file_name source_file.c
Old 11-02-2003, 12:31 AM   #5
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 18.04
Posts: 1,898

Rep: Reputation: 69
I have RH 9
Click the red hat , bottom left on my machine, then programming tools.
There you will see KDevelop, an IDE for all sorts of languages.
Very nice.
I downloaded 30MB of the latest GNU C++, it then took forever to install itself, really hours, don't know why, but it works.
Happy programming!


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
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
With what tools can I do Desktop Programming in Redhat 9 Linux? linuxdullhead Programming 3 12-23-2004 06:46 PM
how to use the programming in Redhat 9 nick27 Programming 1 12-07-2003 10:30 AM
C++ programming FNC Linux - General 4 02-10-2002 04:08 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:31 AM.

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