GCC help

Andrea 'Fyre Wyzard' Bocci fwyzard@inwind.it
Mon Jan 7 19:41:00 GMT 2002


At 09.46 08/01/2002 (GMT +0800), Jason Tang wrote:
>Hi, I am a complete green horn about using GCC.
>I have no idea where to begin to even start writing programs in c++.
>How do I get to the screen where I actually write the program?
>
>Appreciate any help I get.
>Thanks!

Well, with only GCC, you don't.
GCC is just the compiler. To write the program, you need and editor.
Wich one to use, it's mainly a matter of taste...
Supposing you're using Linux......you may try with emacs (quite big and 
complicated), VIM (at least awkward at the beginning), etc...
I prefer nedit - simple and easy to use.
The main line are:
1) You write a program using the editor.
2) You save the program (say, "test.c")
3) You compile it (ie.
gcc -o test test.c

4) It doesn't work :-)
5) You return to the editor, find what you did wrong, and try again...

If, on the other hand, you're looking for and IDE (Integrated Development 
Environment), like Microsoft Dev Studio, you might have a look at GNOME or 
KDE projects - I think KDevelop integrates with GCC quite nicely.

To learn to program in C++, you'll need a good book. Have a look at 
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html.

I hope to have been helpfull,
fwyzard




More information about the Gcc-help mailing list