Visible to Intel only — GUID: GUID-C2B8FF21-AA5C-4B90-AC37-A65E80E786B9
Visible to Intel only — GUID: GUID-C2B8FF21-AA5C-4B90-AC37-A65E80E786B9
object
Specifies the name for an object file.
Syntax
Linux: |
None |
Windows: |
/object:filename |
Arguments
filename |
Is the name for the object file. It can be a file name or a directory name. A directory name must be followed by a backslash (\). If a special character appears within the file name or directory name, the file name or directory name must appear within quotes. To be safe, you should consider any non-ASCII numeric character to be a special character. |
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. It also creates an executable using that same name.
However, if you specify option /c or /compile-only, only the object file is created.
On Linux systems, this option is equivalent to specifying options -o filename -c.
IDE Equivalent
Visual Studio: Output Files > Object File Name
Alternate Options
Linux: None
Windows: /Fo
Example
The following command shows how to specify a directory:
ifx /object:directorya\ end.f
The above command produces directorya\end.obj and executable end.exe in the current directory.
If you do not add the backslash following a directory name, an executable is created. For example, the following command produces files named directorya.obj and directorya.exe:
ifx /object:directorya end.f
The following commands show how to specify a subdirectory that contains a special character:
ifx /object:"blank subdirectory"\ end.f
ifx /object:"c:\my_directory"\ end.f