gcc luatest.c -I/usr/local/include -L/usr/local/lib/liblua.a -llua -lm -ldl.
I have installed lua in my fedora system. After the installation i started writing the programs on C with embedded lua. Afterwards i started compling the code using ::
I am getting compilation errors :: undefined reference to lua_open()
I have tried it for many times and i made various changes but nothing gets reflected into it. Please help me!!!