Forum

> > CS2D > Scripts > Lua .so extension - undefined symbol
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua .so extension - undefined symbol

Keine Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua .so extension - undefined symbol

Banaan
User Off Offline

Zitieren
Hi there,

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
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 tried to run the exact same script through my system's Lua (version 5.1.4), and that works perfectly well.

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?
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht