News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

compiling zlib

Started by benjamin, December 09, 2006, 06:22:30 AM

Previous topic - Next topic

benjamin

Humm, so there we have this nice source code, full of pragmas, defines and shit,
what does pellec thinks of functions defined like this:
ZEXTERN int ZEXPORT    gzclose OF((gzFile file));
well it doesnt like too much, any succesfull approach ?

severach

Pelles defaults to __stdcall calling format which the ZLIB code is not ready for. You must change the default to __cdecl. CRC32 is the only part of ZLIB that I used and I decided it was easier to rewrite it in clean C than to coax the ZLIB code into working with my list of compilers.