lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Nels Anderson wrote:
I'm trying to setup Lua to work in Cygwin (not natively in Windows). I downloaded Lua 5.1.3 and built/installed it using "make linux." I can run the interpreter without any problems. However, I'm having trouble building/installing any of the common Lua libraries. I started with LuaSocket, but LuaFileSystem and others seem to have the same problem.

[snip]

luasocket.o:luasocket.c:(.text+0x1c): undefined reference to `_luaL_checkinteger'
luasocket.o:luasocket.c:(.text+0x26): undefined reference to `_lua_gettop'
-- [snip - more undefined reference errors in *.o]

Sounds to me like your Lua library (presumably lua51.so) isn't in any of the places gcc looks for libraries. Either copy it there or edit the makefile to set an explicit library path.