Specifying Object Files

You can use the /Fo option (Windows*) or -c and -o options (Linux*) 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).

// Linux
dpcpp -c -omyobj.o x.cpp 
// Windows
dpcpp_cl /Fomyobj x.cpp 

See Also