The Intel® C++ Compiler Classic searches the default system areas for include files and items specified by the I compiler option. The compiler searches directories for include files in the following order:
Use the X (Windows*) or -nostdinc (Linux*) option to remove the default directories from the include file search path.
For example, to direct the compiler to search the path /alt/include instead of the default path, do the following:
For C/C++ projects:
// Linux and macOS* icpc -X -I/alt/include prog1.cpp
// Windows icl /X /I\alt\include prog1.cpp
You can use the /Fa option (Windows*) or -S and -o options (Linux* and macOS*) to specify an alternate name for an assembly file. The compiler generates an assembly file named myasm.asm (Windows) or myasm.s (Linux and macOS*).
For C/C++ projects:
// Linux and macOS* icpc -S -omyasm.s x.cpp
// Windows icl /Famyasm x.cpp
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*).
For C/C++ projects:
// Linux and macOS* icpc -c -omyobj.o x.cpp
// Windows icl /Fomyobj x.cpp