From: John L. <jla...@gm...> - 2013-09-11 23:26:59
|
On Wed, Sep 11, 2013 at 5:52 PM, Paul K <pau...@ya...> wrote: > Hi John, > > I'm trying to build wxlua against LuaJIT and get compilation errors. I > know, I can build against "normal" Lua 5.1 and use it with LuaJIT (and > that's exactly what I'm doing now), but I'd like to avoid that extra > step if possible. These are the errors: > > ../wxLua/modules/wxlua/lbitlib.c:83: error: expected ‘=’, ‘,’, ‘;’, > ‘asm’ or ‘__attribute__’ before ‘lua_Unsigned’ > <<<more errors here>>>> > Please provide as much info as possible to make my life easier. I'm just looking at the wxLua code I have and the LuaJIT code online and this error makes no sense to me. > > Is it something that can be addressed? It would also be great if wxlua > would only load its own bitlib into "bit" table if it's not already > loaded. > > I vaguely remember reading that LuaJIT provides its own bit32 lib and there's at least a declaration of it here. http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lualib.h wxLua only added the bit32 lib for 5.1 since 5.2 already had it. I have blindly added a check for LuaJIT to not add it there either. Let me know if it works for you. John |