Intel® C++ Compiler 19.0 Developer Guide and Reference

Specifying Object Files

You can use the /Fo option (Windows*) or -c and -o options (Linux* and macOS*) to specify an alternate name for an object file. In this example, the compiler generates an object file name myobj.obj (Windows*) or myobj.o (Linux* and macOS*).

// Linux* and macOS*
icpc -c -omyobj.o x.cpp 
// Windows*
icl /Fomyobj x.cpp 

See Also