lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, May 27, 2022 at 8:22 PM Duke Normandin <> wrote:
You can compile the program into Lua's bytecode by executing
following on your shell:

$ luac bottles_of_matte.lua -o bottles_of_matte.luac

It chokes on the `-o' option!

It works fine, but you have to put the source file as the last argument and option flags like '-o' before that.


$ ls test.l*
$ luac test.lua -o test.luac
luac: cannot open -o: No such file or directory
$ ls test.l*
$ luac -o test.luac test.lua
$ ls test.l*
test.lua  test.luac