err 678 B

123456789101112131415
  1. gcc -Wall -std=c99 -pedantic -g sa.c -o sa -l m -l png
  2. In file included from /usr/include/pngconf.h:50:0,
  3. from /usr/include/png.h:366,
  4. from readpng.c:3,
  5. from sa.c:3:
  6. readpng.c: In function 'readpng_init':
  7. readpng.c:41:23: error: dereferencing pointer to incomplete type 'png_struct {aka struct png_struct_def}'
  8. if (setjmp(png_ptr->jmpbuf)) {
  9. ^
  10. sa.c: In function 'main':
  11. sa.c:6:14: warning: format '%p' expects argument of type 'void *', but argument 2 has type 'png_structp {aka struct png_struct_def *}' [-Wformat=]
  12. printf("%p\n", png_ptr);
  13. ~^
  14. make: *** [Makefile:6: sa] Error 1