o

Specifies the name for an output file.

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS X: -o file
Windows:  None

Arguments

file Is the name for the output file. The space before file is optional.

Default

OFF The compiler uses the default file name for an output file.

Description

This option specifies the name for an output file as follows:

Otherwise, it specifies the name of the executable file.

Note

If you misspell a compiler option beginning with "o", such as -openmp, -opt-report, etc., the compiler interprets the misspelled option as an -o file option. For example, say you misspell "-opt-report" as "-opt-reprt"; in this case, the compiler interprets the misspelled option as "-o pt-reprt", where pt-reprt is the output file name.

Alternate Options

Linux and Mac OS X: None
Windows: /Fe, /exe

See Also

Fe compiler option

object compiler option