ZLib:
use -Ze -Go compilers options
This PellesC error
C:\code\PellesC\zlib-1.2.7\inftrees.c(39): error #2120: Redeclaration of 'inflate_table', previously declared at C:\code\PellesC\zlib-1.2.7\inftrees.h(60); expected 'int __cdecl function(codetype, unsigned short int *, unsigned int, code * *, unsigned int *, unsigned short int *)' but found 'int __cdecl function()'.
That is bug in PellesC. Comment that out
int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work)
codetype type;
unsigned short FAR *lens;
unsigned codes;
code FAR * FAR *table;
unsigned FAR *bits;
unsigned short FAR *work;
use insteadint ZLIB_INTERNAL inflate_table(codetype type, unsigned short *lens, unsigned codes, code * *table, unsigned *bits, unsigned short *work)
pomake -f win32\Makefile.msc CC=pocc.exe CFLAGS="-Ze -Go" WFLAGS= AR=polib.exe RC=porc.exe zlib.lib
lpng:
for example:
pomake -f scripts/makefile.vcwin32 CC=pocc.exe CFLAGS="-I..\zlib-1.2.7 -Ze" AR=polib.exe libpng.lib