Mail Archives: djgpp/1997/07/03/13:49:14
>I am new to 3d programming and to start I went ahead and wrote a simple 3d
>engine that reads in a world definition file and renders it with full
>freedom of movement...anyway when I try to run it I get some SIGSEGV
>errors. Are these errors in memory addressing by pointers (I use a lot of
>them) or something else?
That's the usual cause. Check for uninitialized and overrun pointers. If you
compile with -g, using `symify myprog.exe' after the crash will give you a
traceback which may help you fing the bug. (If it's inside a library
function, check what you passed to the function.)
Sometimes it comes up with "error: 0006" but I
>can't find any reference to that error code. I'm also wondering how to use
>the debugging tools. Right now all I can do is insert "printf"s at certain
>locations and hope the program gets to them without an error. Any help
>would be greatly appreciated.
I like GDB a lot, but there are several available. Read Section 12 of the
FAQ, particularly 12.5.
HTH
Nate Eldredge
eldredge AT ap DOT net
- Raw text -