First, Lua is a scripting language, not a compiled language. This means there is no compiler or linker, Just an interpreter (which probably acts as both). Second, you need to find the lua executable, and run it first. On a linux system, it might look like: ./lua myfile.lua . Alternately, you could open the .lua file that you are making and make the first line something like: #!/usr/bin/lua or if the .lua file is in the same directory as the lua binary #!./lua And yes, this is the C++ forum.