> And running this gives what you might expect: Parsing Error for file 'hello.lua' You should print the error message sent by Lua: puts(lua_tostring(L,-1)); This will tell you exactly what is wrong.