Re: Tk problem building / installing using Perl 5.12.0.1 on x64

[email protected] (kmx)
Newsgroups perl.win32.vanilla
Message-ID <[email protected]>
Dne 27.7.2010 17:39, Paul napsal(a):
> ...
>
> Starting at 43:
> 43: #ifdef _DWIN64
> 44: typedef __int64 XID;
> 45: #else
> 46: typedef unsigned long XID;
> 47: #endif
>
> I was able to correct this by changing this to
> 43: #ifdef _DWIN64
> 44: #include <inttypes.h>
> 45: typedef __int64 XID;
> 46: #else
> 47: typedef unsigned long XID;
> 48: #endif
>   

The trouble is that IIRC __int64 is not supported by gcc as a
native/built-in type therefore you have to include "some" header
defining it.

Your patch is technically correct and should work with both gcc and msvc
compilers.

Another way (IMHO more compiler-portable) to handle this is:

43: #ifdef _DWIN64
44: typedef unsigned long long XID;
45: #else
46: typedef unsigned long XID;
47: #endif

Anyway, as mentioned by Curtis in his post, this should be patched in Tk
module.

--
kmx
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.