lua-users home
lua-l archive

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




2012/1/9 Artur Galyamov <artur-pub@yandex.ru>
Hi,

...
If I do main() && luaL_newstate() && luaopen_test() && luaL_dostring() in test.c, it's all ok.
It seems that problem is in test.so itself… Is my test.so build process okay?
 
...


$ cc test.c -shared -o test.so -llua -lm


I think that is the problem. You shouldn't link with -llua in your .so.