/Fo (Object File Name)
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Specifies an object (.obj) file name or directory to be used instead of the default.
If you do not use this option, the object file uses the base name of the source file and the .obj extension. You can use any name and extension you want, but the recommended convention is to use .obj.
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the Output Files property page.
Modify the Object File Name property. In the development environment, the object file must have an extension of .obj.
- See ObjectFile.
The following command line creates an object file named THIS.obj in an existing directory, \OBJECT, on drive B.
CL /FoB:\OBJECT\ THIS.C