lua-users home
lua-l archive

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


Commited a patch to github to fix some of the problems below. I
remembered that Windows x64 was officialy unsupported; the latest
version of libffi has support for Windows x64, but I did not have a
machine to test this, so I just made Makefile.win64 so someone with a
Win64 machine could help me track down the bugs.

On Tue, Mar 1, 2011 at 10:55 AM, Attila <ejjeliorjarat@gmail.com> wrote:
> Here is the output:
>
> E:\Lua\alien>nmake /f makefile.win64
>
> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>        cl /c /MD /Fosrc\alien\core.obj /O2 /DWINDOWS /Ic:\usr\local\include
> /Il
> ibffi\win32 src\alien\core.c
> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> core.c
> src\alien\core.c(308) : error C2065: 'FFI_STDCALL' : undeclared identifier

Fixed, libffi for Windows x64 does not define FFI_STDCALL.

> src\alien\core.c(308) : error C2099: initializer is not a constant
> src\alien\core.c(836) : error C2440: ':' : cannot convert from 'void' to
> 'const
> char *'
> src\alien\core.c(1060) : error C2440: ':' : cannot convert from 'void' to
> 'const
> char *'

These are very odd, because both lines have explicit casts. Could not
find anything on Google about this being specific behavior of the
cl.exe for Windows x64.

> src\alien\core.c(1422) : error C2079: 'alienlib' uses undefined struct
> 'alienlib
> '
> src\alien\core.c(1422) : error C2078: too many initializers
> src\alien\core.c(1452) : warning C4133: 'function' : incompatible types -
> from '
> const luaL_reg []' to 'const luaL_Reg *'

Seems like Lua 5.2 cut support for luaL_reg as an alias for luaL_Reg,
just changed it to use luaL_Reg.

--
Fabio Mascarenhas