On Saturday 17 September 2005 01:52, Philipp Thomas wrote:
So SLtt_Char_Type is 32 bit on i386 but 64 bit on x86-64, whereas in ncurses it's always 32 bit. That's why it works on i386 but not on x86-64. The fix is simple, just declare SLtt_Char_type like ncurses does, i.e.:
#ifdef _LP64 typedef unsigned int SLtt_Char_Type; #else typedef unsigned long SLtt_Char_Type; #endif
Of cause you'll have to rebuild the slang package and all those packages depending on slang, as the ABI changes.
For it to work at runtime yes, but the change should make an immediate impact on my compile of libcaca. The trouble is, it doesn't. That was one of the first things I tried, to change the slang definition to int, but gcc still complains about a mismatch. Which is why my hair is getting progressively thinner