> The program compiled fine, but with few warnings.
> When try to run the binary, it give core dump.
> So, any idea why this "core dump" happen ?
> I mean generally, what is the main cause ?

Core dump == bad program. Probably the compiler is trying to tell you
something, look closely at the warnings.

Run the program in the debugger : 'gdb prog_name'

In the debugger, when the core dump is about to happen, the debugger will
stop the program, try and give you a clue about what went wrong, and show
you the line where it has stopped. Read the gdb info pages, or a book like
'Running Linux' for some help using gdb.

Contact the author of the program, and let them know what you've found; or
if it's your program, try one of the programming newsgroups to find someone
to help you debug it.

Good Luck,
Steven.

Reply via email to