object

Specifies the name for an object file.

IDE Equivalent

Windows: Output Files > Object File Name
Linux: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: None
Windows:  /object:file

Arguments

file    Is the name for the object file. It can be a file or directory name.

Default

OFF An object file has the same name as the name of the first source file and a file extension of .obj.

Description

This option specifies the name for an object file.

If you specify this option and you omit /c or /compile-only, the /object option gives the object file its name.

On Linux systems, this option is equivalent to specifying option -ofile -c.

Alternate Options

Linux: None

Windows: /Fo

See Also

o compiler option