I'm experimenting with the LUA API atm, but for some reason it doesn't seem to be linking properly. I'm on linux (slackware), and I've compiled and installed the most recent version of lua.
Here's the output:
gcc -o voipscript -llua main.o resources.o siplib.o main.o: In function `main': main.c:(.text+0x83): undefined reference to `luaL_newstate' main.c:(.text+0x9d): undefined reference to `luaL_loadfile' collect2: ld returned 1 exit status make: *** [all] Error 1
As you can see, I've linked to lua with the '-llua' switch. Can anyone tell me why it doesn't link properly? (at least I'm assuming that's the problem)
Thanks in advance,
OScoder


Sign In
Create Account

Back to top









