Intel® C++ Compiler 16.0 User and Reference Guide

Specifying Object Files

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

// Linux* OS and OS X* with EDG compiler
icpc -c -omyobj.o x.cpp 
// OS X* with CLANG compiler
icl++ -c -omyobj.o x.cpp
// Windows* OS
icl /Fomyobj x.cpp 

See Also