User and Reference Guide for the Intel® C++ Compiler 14.0

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.o (Windows* OS) or myobj.o (Linux* OS and OS X*).

// (Linux* OS and OS X*)
icpc -c -omyobj.o x.cpp 
// (Windows* OS)
icl /Fomyobj x.cpp 

See Also


Submit feedback on this help topic