On Thu, 27 Mar 2003, Daniel Fone wrote:

> I have no idea what this means and this is the first time I have done
> any file I/O in linux. Does anyone know what this means and/or how to
> fix it?

It looks like the list has already helped you fix this problem, so I'm
going to tell you about the debugger.

It's called 'ddd'. Run it like this:

ddd <executable file>

You'll need to compile your program with the '-g' flag so that gcc
produces output that ddd (or gdb) can understand. 'Segmentation Fault' is
a surprisingly common problem, and a debugger can help you find the source
of the problem much faster.

For more info about the debugger...look at the man page :)

Tim Wright

Assistant Lecturer
Department of Computer Science
University of Canterbury

http://www.cosc.canterbury.ac.nz/~tnw13

Reply via email to