gcc -c -I./zlib-src ... adler32.c adler32.c:12: error: expected declaration specifiers or '...' before +'__int64'
__int64 is the MSVC extension typespecifier for 64-bit integers, otherwise known by the (rather daft) nomenclature: long long
The code is (wrongly) using the compiler-predefined #define, _WIN32 to imply MSVC:
#if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEF +ILE-0) # define z_off64_t off64_t #else # if defined(_WIN32) # define z_off64_t __int64 # else # define z_off64_t z_off_t #endif #endif
Which falls in a heap when you are uing gcc under windows.
A (minimal) fix would be to change that to be:
#if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEF +ILE-0) # define z_off64_t off64_t #else # if defined(_MSC_VER) ### this line changed. # define z_off64_t __int64 # else # define z_off64_t z_off_t #endif #endif
You might also like to feed that back to the author.
In reply to Re: install of Compress::Raw::Zlib on windows7 strawbery perl
by BrowserUk
in thread install of Compress::Raw::Zlib on windows7 strawbery perl
by gman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |