I'm trying to get Lua properly installed using either 5.0.2 or 5.1
(i.e. whatever works) on my MacOS X box. Having spent a fair amount of
time on this, I've basically come down to this problem: a number of
functions have no defined symbols, so when I try to make my project, I
get this:
% make
g++ -g -Wall -pedantic -L/usr/local/lib -framework Cocoa -o test
main.o qux.o tolua_test.o -ltolua++ -llua -llualib
ld: Undefined symbols:
lua_open()
lua_close(lua_State*)
luaopen_base(lua_State*)
luaL_loadfile(lua_State*, char const*)
luaL_newstate()
lua_pcall(lua_State*, int, int, int)
_lua_newtable
_lua_setgcthreshold
make: *** [test] Error 1