tolua needs to be linked with libdl, please patch the Makefile and add -ldl. error-output: ============= gcc -o ../../bin/tolua tolua.o toluabind.o -L../../lib -L/usr/lib -ltolua -llua -llualib -lm /usr/lib/liblualib.so: undefined reference to `dlerror' /usrgcc -o ../../bin/tolua tolua.o toluabind.o -L../../lib -L/usr/lib -ltolua -llua -llualib -lm /usr/lib/liblualib.so: undefined reference to `dlerror' /usr/lib/liblualib.so: undefined reference to `dlclose' /usr/lib/liblualib.so: undefined reference to `dlopen' /usr/lib/liblualib.so: undefined reference to `dlsym' collect2: ld returned 1 exit status make[1]: *** [../../bin/tolua] Error 1 Regards, Andy.
i'm pretty sure this is a bug in lua tolua links against liblualib, and since it calls functions in libdl, then it should be linked against libdl oddly, /usr/lib/liblualib.so.5.0 is showing up as a static library on my machine ...
Simple add -ldl fix in CVS. Tom