Subject: | Error and solution to x64 compile error in Windows |
Date: | Mon, 24 Jun 2013 16:22:03 +0000 |
To: | "bug-Compress-LZF [...] rt.cpan.org" <bug-Compress-LZF [...] rt.cpan.org> |
From: | "Marin Badilla, Alejandro" <alejandro.marin [...] bankofamerica.com> |
Hello, thanks for maintained this package.
I run across a small glitch when trying to compile the package with Strawberry 5.16.2 using 64 bits.
The error occurs because in line 124 of lzf_c.c there is a type when defining the __int64 type: there is one
#if defined (WIN32) && defined (_M_X64)
unsigned _int64 off; /* workaround for missing POSIX compliance */
#else
unsigned long off;
#endif
unsigned int hval;
int lit;
The correct code is:
#if defined (WIN32) && defined (_M_X64)
unsigned __int64 off; /* workaround for missing POSIX compliance */
#else
unsigned long off;
#endif
unsigned int hval;
int lit;
With that small fixes, it compiles and works correctly.
Regards,
Alejandro Marin
Capacity and Performance Management
GMRT Infrastructure Solutions and Build
BA Continuum Costa Rica Ltd.
(A nonbank subsidiary of Bank of America)
Office: +1 877 426 8348 x545-2819
alejandro.marin@bankofamerica.com<mailto:alejandro.marin@bankofamerica.com>
----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.