From: John L. <jla...@gm...> - 2013-04-02 02:22:24
|
On Mon, Apr 1, 2013 at 4:46 AM, Victor Bombi <so...@te...> wrote: > > perhaps luaL_requiref is the answer? Eventually, but I'd prefer to not reimplement perfectly good existing code that is enabled by default. >>I recompiled lua52 with LUA_COMPAT_ALL and managed to compile wx.lua >> The problem I have is that I use other lua modules also: Lanes, Luasocket >> ... >> Lanes cant be used with LUA_COMPAT_ALL (only pure 5.1 or 5.2) so I wont be >> able >> to use 5.2 in my project. >> Looking into the future I thing that wxlua should get rid of >> LUA_COMPAT_ALL >> to be compatible >> with other modules. Actually, it's the other modules that need to be compatible with Lua and wxLua since the Lua Makefile default is LUA_COMPAT_ALL and I would assume that OS packagers would respect the Lua Makefile and keep it enabled. If you're correct, this means that these libraries won't work using a default system Lua library? Can you explain why these other modules cannot work with LUA_COMPAT_ALL enabled? Are they providing their own duplicate versions of Lua's functions and you get linker errors? Also, can you explain line 25 here? https://github.com/diegonehab/luasocket/blob/unstable/src/luasocket.h Regards, John |