Programming in C (and C++)

Karl Auer kauer at
Tue Sep 19 06:42:12 UTC 2006

On Tue, 2006-09-19 at 08:34 +0200, Petar Milin wrote:
> Thank you all for good advices. Nevertheless, if I start using some
> editor (I prefer gedit or vim) and makefile and/or gcc, the only thing
> that bothers me is how to do debugging; how to get error-lines, like in
> MS Visual C++? Is it built-in gcc?

If you run gcc, it will issue errors and warnings, with line numbers.
You then figure each one out, recompile, run and repeat until everything
compiles without errors or warnings :-)

If you want something that will let you step through execution, you
could use gdb (the command line debugger for gcc), but you are really
WAY better off investing the time and effort to get familiar with a good
IDE. It will save you vast amounts of time in the long run. Many IDEs
also offer hints and even automatic fixes for many common errors.

Regards, K.

Karl Auer (kauer at                   +61-2-64957160 (h)                  +61-428-957160 (mob)

More information about the ubuntu-users mailing list