On Wed, Sep 11, 2013 at 5:52 PM, Paul K <paulclin...@yahoo.com> 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
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users