Hi,
I've compiled angband 3.0.9a executable for wiz by arm-linux-gcc compiler from windows sdk.
Compiler and linker doesn't print any errors. I used SDL module. I have all resources files in right path.
But when I run it, then there is error - segmentation fault.
In main-sdl.c I've put some printf for debugging.
Segmentation fault occurs between "_3" and "_4", so program doesn't print "_4"
//... in main-sdl.c ....
printf( "_1\n" );
init_paths();
printf( "_2\n" );
/* Load prefs */
load_prefs();
printf( "_3\n" );
/* Get sdl going */
init_sdl_local();
printf( "_4\n" );
//...
At the beginning of the function init_sdl_local() I have printf( "__1\n" );
Why "__1" doesn't show when I run the program ?
How to debug such painful errors?
I've compiled angband 3.0.9a executable for wiz by arm-linux-gcc compiler from windows sdk.
Compiler and linker doesn't print any errors. I used SDL module. I have all resources files in right path.
But when I run it, then there is error - segmentation fault.
In main-sdl.c I've put some printf for debugging.
Segmentation fault occurs between "_3" and "_4", so program doesn't print "_4"
//... in main-sdl.c ....
printf( "_1\n" );
init_paths();
printf( "_2\n" );
/* Load prefs */
load_prefs();
printf( "_3\n" );
/* Get sdl going */
init_sdl_local();
printf( "_4\n" );
//...
At the beginning of the function init_sdl_local() I have printf( "__1\n" );
Why "__1" doesn't show when I run the program ?
How to debug such painful errors?