Click to See Complete Forum and Search --> : Compile question


JoeyJoeJo
02-03-2004, 10:04 PM
I'm pretty new to linux/unix programming. In M$ Vis C++ when you compile it gave some output on what warnings and errors you have. Is there a program in Linux that does that? Right now I just use the make command.

serz
02-03-2004, 10:10 PM
It should give you those warnings at compiling time.

JoeyJoeJo
02-03-2004, 10:12 PM
Ok. So far I haven't done much of anything, just a little playing around. Is there a program of choice for writing code, or just open up your favorite text editor?

michaelk
02-03-2004, 10:35 PM
Just use your favorite text editor.

Just off the time of my head there are some programming IDEs for linux.
Adjunta and Kdevelop

And Borland's Kylix, which is cross platform compatable with Delphi and C++ Builder. (Less windows api's etc etc)

GaryJones32
02-04-2004, 12:21 AM
glade2 / glade
is a very cool and easy way to learn gtk+
which is a straight derivative of x toolkit
and very similar to motif/lestif

"favorite text editor" is like one step away from a clasic flame war

Citadel
02-04-2004, 01:16 AM
Originally posted by JoeyJoeJo
Ok. So far I haven't done much of anything, just a little playing around. Is there a program of choice for writing code, or just open up your favorite text editor?

Learn some shell basics:
1. The <tab> key autocompletes your entries
2. Arrow keys scrolls through the command history
3. Basic naviagation and file and directory management
4. cat filename.c outputs the text file contents to the terminal
5. cat filename.c | less pipes the output to a utility that allows you to scroll up and down.

Basic Emacs:
1. Type: emacs programName.c
2. Emacs takes care of formatting code for you.
3. Type: (Hold down) CTRL key and press x, s, x, c
This will save and exit emacs
4. To increase font size in emacs put the mouse cursor inside the emacs editor window, hold down the shift key, and press the left mouse button, it will bring up a menu and you can change the font size.

Command Line:
gcc programName.c
./a.out

You can redirect error information to a file:
gcc programName.c 2> errorfile

Otherwise it will default error descriptor stream to standard output.

Learn the basics of gcc and g++, there are many online tutorials. Learn the basics of 'Makefile'.