o

Specifies the name for an output file.

IDE Equivalent

None

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-ofile

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 iconNote

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

See Also