Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

Specifying Object Files

$
0
0

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


Viewing all articles
Browse latest Browse all 1665

Trending Articles