I have a program written in a combination of c and lua. I know how to compile c programs, and I know how to compile lua programs, but I don't know how I can compile a hybrid program into a single executable. It's also important to note that I'm using the lua c api.
EDIT: just to clarify, I'm not using the lua interpreter in anyway shape or form.
luaexecutable that comes with the Lua distribution.