|
On Oct 9, 2008, at 2:41 PM, Brian Macherone wrote:
Windows (sadly) requires that all references be known at link-time... no useful auto-resolve that ld.so does.I'm trying to build the Lua random library under Cygwin and get thefollowing errors. Any pointers for this novice? (Makefile included belowcompilation / linking results) $ make gcc -I/cygdrive/j/bsmlab/LuaWindows/Lua-5.1.4/lua-5.1.4/src -ansi -pedantic -Wal l -O2 -c -o lrandom.o lrandom.c gcc -o random.so -shared lrandom.o lrandom.o:lrandom.c:(.text+0x197): undefined reference to `_luaL_checkudata'
You'll have to add the appropriate -llua ONLY for cygwin/mingw builds...