I actually get the problem with other functions of the same file but not for variables defined in the same.
Code:
png_byte color_type;
png_byte bit_depth;
png_structp png_ptr;
png_infop info_ptr;
png_bytep * row_pointers;
All of these are recognized. I guess if there was a linking problem to the library they would also be undefined references, or not?
I found in the distribution of pnglib the c file that defines the function. However including it should not be required since I've the libpng.LIB in the lib folder.
I'm using Eclipse with MinGW.