On Mon, Apr 1, 2013 at 4:46 AM, Victor Bombi <son...@telefonica.net> 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 ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users