Output Filename/directory

By default, the compiled executable have the same name as your main Lua source file. For example, the command :

ljc hello_world.lua

Will compile the main Lua source file "hello_world.lua" to an executable named "hello_world.exe"

Output filename (option -o filename)

The option -o permits to change the default compiled executable filename. Note that if the file already exists, it will be overwritten after the compilation.

Output directory (option -o path)

If you give a directory name to the output option, the compiled executable and the binary dependencies will be generated inside this directory.

Hint: if the given path to the executable doesn't exists, ljc will create it.