On Thu, 2004-06-10 at 20:02, stm23 wrote:
> so it would seem that the -g option is the key!

To make life easier in future, open the file ".bashrc", which lives in
your home directory, and add the line
        export CFLAGS="-g -Wall"
or
        export CLFAGS="-g -ansi -Wall"
or
        export CFLAGS="-g -std=c99 -Wall"
depending on your taste (I like the latter).

After that is done, save the file and open a new terminal. Now use make
to compile your programs, as so
        make program
(Remember to tell make what you want to make, not what you have!)

You only have to edit ".bashrc" once, but you will have remember to use
make all the time â which is not so bad, as you normally have to use
make to compile all non-trivial programs anyway.

-- 
Michael JasonSmith                                   http://www.ldots.org/


Reply via email to