[Zlib-devel] Building with C++

Jan Seiffert kaffeemonster at googlemail.com
Sat Mar 17 12:33:46 EDT 2012


2012/3/17 Paul Marquess <Paul.Marquess at ntlworld.com>:
> Building with C++ causes a few casting problems.
>

NACK.
zlib is a C library, written in C89 and even sometimes K&R compatible.
Casting the return value of malloc is dangerous in C. It hides a
missing prototype for malloc.
There should be a C-Compiler on your system able to compile it.

[snip]
>
>
> Paul
>

Greetings
Jan

-- 
˙qɐɥ ʇɟnɐʞǝƃ ʎɐqǝ ıǝq ɹnʇɐʇsɐʇ ǝuıǝ ɹıɯ ɥɔı sɐp lɐɯ ǝʇzʇǝl sɐp ʇsı sɐp
'ʇɯɯɐpɹǝʌ




More information about the Zlib-devel mailing list