I'm trying to get LuaSocket to work with CS2D. I make'd it inside my CS2D folder (for portability) and added the correct package paths, so CS2D manages to find the correct packages through require.
I do have a problem though - I get this error:
1
2
2
LUA ERROR: error loading module 'socket.core' from file './sys/lua/socket/core.so': 	./sys/lua/socket/core.so: undefined symbol: lua_getmetatable
I've also googled it, the only solution I found (apart from re-compiling Lua, which I obviously can't do for CS2D) was to add -llua to the LDFLAGS for the make config and recompile it. That, unfortunately, didn't work either.
Has anybody come across such an error before, and is there a fix for it?