### /Fo Compiler Option

Syntax: | Default:
/Fo[+|-] | /Fo[+]
/Fo[dir][name] |

Use /Fo to produce, name, and direct an object file. The object file will be name.obj, and will be placed in directory dir.

The compiler produces a separate object file for each source file that follows the option on the command line.

If you specify a name with an extension, that extension is used. If you do not specify a name or a directory, the object file takes the same filename as the source file, with the extension .obj, and is put in the current directory.

If the directory you specify is not valid, the compiler generates a warning message, and places the object file in the current directory, with its default name.

By default, the compiler produces an object file with the same name as the source file and the extension .obj.

Specify /Fo- if you do not want the compiler to create an object file.

Summary of Compiler Options