LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-02-2003, 12:29 AM   #1
jacksmash
Member
 
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-02-2003, 12:33 AM   #2
zexter
Member
 
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-02-2003, 12:37 AM   #3
jacksmash
Member
 
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-02-2003, 12:59 AM   #4
megaspaz
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, 01:31 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 14.04
Posts: 1,525

Rep: Reputation: 42
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!
 
  


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


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration