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! |
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
|
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. |
if you installed the development packages, then just run:
gcc -o executable_file_name source_file.c |
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! |
All times are GMT -5. The time now is 07:46 PM. |