imshow broken in stdlib
Bugzilla Link | 741 |
Created on | Sep 06, 2010 18:13 |
Resolution | WORKSFORME |
Resolved on | Sep 26, 2015 17:26 |
Version | svn |
OS | All |
Architecture | PC |
Extended Description
An mt stdlib build with compiler 16923 and stdlib 1399 (stdlib head) gives the error below. The source file in question has changed recently. modules/structures/src/SimpleImage/imshow.c:6:17: error: png.h: No such file or directory modules/structures/src/SimpleImage/imshow.c: In function ‘imshow’: modules/structures/src/SimpleImage/imshow.c:13: error: ‘png_structp’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:13: error: (Each undeclared identifier is reported only once modules/structures/src/SimpleImage/imshow.c:13: error: for each function it appears in.) modules/structures/src/SimpleImage/imshow.c:13: error: expected ‘;’ before ‘png_ptr’ modules/structures/src/SimpleImage/imshow.c:14: error: ‘png_infop’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:14: error: expected ‘;’ before ‘info_ptr’ modules/structures/src/SimpleImage/imshow.c:15: error: ‘png_bytep’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:15: error: ‘row_pointers’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:16: error: expected ‘;’ before ‘img_data’ modules/structures/src/SimpleImage/imshow.c:17: error: ‘png_int_32’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:17: error: ‘bptr’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:28: error: ‘png_ptr’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:28: warning: implicit declaration of function ‘png_create_write_struct’ modules/structures/src/SimpleImage/imshow.c:28: error: ‘PNG_LIBPNG_VER_STRING’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:33: error: ‘info_ptr’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:33: warning: implicit declaration of function ‘png_create_info_struct’ modules/structures/src/SimpleImage/imshow.c:35: warning: implicit declaration of function ‘png_destroy_write_struct’ modules/structures/src/SimpleImage/imshow.c:36: error: ‘png_infopp’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:43: warning: implicit declaration of function ‘png_set_IHDR’ modules/structures/src/SimpleImage/imshow.c:47: error: ‘PNG_COLOR_TYPE_RGB’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:48: error: ‘PNG_INTERLACE_NONE’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:49: error: ‘PNG_COMPRESSION_TYPE_DEFAULT’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:50: error: ‘PNG_FILTER_TYPE_DEFAULT’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:53: error: ‘img_data’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:61: error: expected expression before ‘)’ token modules/structures/src/SimpleImage/imshow.c:67: error: expected ‘)’ before ‘ar’ modules/structures/src/SimpleImage/imshow.c:68: error: expected ‘)’ before ‘ar’ modules/structures/src/SimpleImage/imshow.c:69: error: expected ‘)’ before ‘ar’ modules/structures/src/SimpleImage/imshow.c:74: warning: implicit declaration of function ‘png_set_rows’ modules/structures/src/SimpleImage/imshow.c:79: warning: implicit declaration of function ‘png_init_io’ modules/structures/src/SimpleImage/imshow.c:80: warning: implicit declaration of function ‘png_set_filler’ modules/structures/src/SimpleImage/imshow.c:80: error: ‘PNG_FILLER_BEFORE’ undeclared (first use in this function) modules/structures/src/SimpleImage/imshow.c:81: warning: implicit declaration of function ‘png_write_png’ modules/structures/src/SimpleImage/imshow.c:81: error: ‘PNG_TRANSFORM_STRIP_FILLER’ undeclared (first use in this function)