Took me some time to figure this out trying out this example.
First you need to install Lua:
ubuntu> sudo apt-get install lua5.2
ubuntu> sudo apt-get install liblua5.2-dev
Then compile the source file:
ubuntu> gcc a.c -I/usr/include/lua5.2 -L/usr/lib/x86_64-linux-gnu -llua5.2
I had to make some adjustments in the source file. The adjusted source file is as follows:
No comments:
Post a Comment