The compiler 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 -nostdinc (Linux) or X (Windows) 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, use the following:
Linux
icpx -nostdinc -I/alt/include prog1.cpp
Windows
icx /X /I\alt\include prog1.cpp
You can use the -S and -o options (Linux) or /Fa option (Windows) to specify an alternate name for an assembly file. The compiler generates an assembly file named myasm.s (Linux) or myasm.asm (Windows):
Linux
icpx -S -o myasm.s x.cpp
Windows
icx /Famyasm x.cpp
You can use the -c and -o options (Linux) or /Fo option (Windows) to specify an alternate name for an object file. In this example, the compiler generates an object file name myobj.o (Linux) or myobj.obj (Windows):
Linux
icpx -c -o myobj.o x.cpp
Windows
icx /Fomyobj x.cpp