1 2 3 4 5 6 7 8 9 10 11
| $ gcc -Wall -ggdb 01_09_02_testbmp.c 01_09_02_bmp.c -o bmptrait
01_09_02_testbmp.c: In function ‘main’:
01_09_02_testbmp.c:5:8: attention : unused variable ‘j’ [-Wunused-variable]
01_09_02_testbmp.c:5:6: attention : unused variable ‘i’ [-Wunused-variable]
$ gdb -q ./bmptrait
Reading symbols from (...)/bmptrait...done.
(gdb) run
Starting program: (...)/bmptrait
Program received signal SIGSEGV, Segmentation fault.
0x08048aae in Sauver (I=0x0, fichier=0x8048d18 "test1.bmp") at 01_09_02_bmp.c:133
133 head.imhead.width = I->w; |