lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Hello lua list,

I'm recompiling my lua 5.0 based component for use with Windows XP x64, unfortunately I'm having some troubles. Has anybody out there got Lua 5.0 running on Windows XP x64?

My first problem seems related, of course to integer sizes & pointers.

In lundump.c, function LoadHeader, line 244, TESTSIZE(sizeof(size_t), "size_t");

static void TestSize (LoadState* S, int s, const char* what)
{
    int r=LoadByte(S);
    if (r!=s)
        luaG_runerror(S->L,"virtual machine mismatch in %s: "
                      "size of %s is %d but read %d",S->name,what,s,r);
}

Is failing because s=8 & r=4.

Anyone got any hints as to how to fix this? Or how to properly compile lua 5.0 for use with Windows XP/2003/Vista x64 in general?


Thanks,
Andrew Wilson
Waltham, MA