I have the following trivial Lua program which I copied from the book Programming In Lua
#include #include #include
The names in the Lua API do not have those leading underscores. Try compiling with -fno-leading-underscore.
-fno-leading-underscore