From: Marko K. <dr...@gm...> - 2013-01-30 22:19:11
|
Greetings, As of libpng version 1.5.0beta36, the <png.h> header no longer includes the <zlib.h> header. Here's a relevant snippet from libpng ChangeLog (lines 2946-2947): The standard headers no longer include zlib.h, which is currently only required for pngstruct.h and can therefore be internal. Compilation will fail in screenshot.c with undefined references to Z_BEST_COMPRESSION and similar macros. Of course, this only happens if libpng is enabled and if its version is >= 1.5.0beta36. The obvious fix would be to simply include <zlib.h> in the screenshot.c file. Or maybe the include should go in screenshot.h? You decide. |