Lahey/GNU Fortran

-out filename

Output Filename

Link only. Default: the name of the first object or source file.

GFortran option: -o

If -out is not specified, the output file is not automatically placed in the current directory. By default it is placed in the same directory as the first source or object file listed on the command line.

This option takes a single argument, which is the path and name of the output file. If filename contains no path information, the output file is placed in the current directory.

If -ndll is specified (default), the .EXE extension is forced.

If -dll is specified, the .DLL extension is forced.

If the file extension .A is specified, and the specified library file does not exist, it will be created. If the specified library already exists, it will be updated.

Examples

LGF hello.obj -out d:\LGF\hello.exe
LGF main.obj -out maintest