Visible to Intel only — GUID: GUID-A7F7E5F2-4754-4C32-93FF-84E53C7996D1
Visible to Intel only — GUID: GUID-A7F7E5F2-4754-4C32-93FF-84E53C7996D1
Specify Compiler Files
Specify Include Files
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:
- Directories specified by the I option.
- Directories specified in the environment variables.
- Default include directories.
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 and macOS
icpc -nostdinc -I/alt/include prog1.cpp
Windows
icl /X /I\alt\include prog1.cpp
Specify Assembly Files
You can use the -S and -o options (Linux and macOS) or /Fa option (Windows) to specify an alternate name for an assembly file. The compiler generates an assembly file named myasm.s (Linux and macOS) or myasm.asm (Windows):
Linux and macOS
icpc -S -o myasm.s x.cpp
Windows
icl /Famyasm x.cpp
Specify Object Files
You can use the -c and -o options (Linux and macOS) 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 and macOS) or myobj.obj (Windows):
Linux and macOS
icpc -c -o myobj.o x.cpp
Windows
icl /Fomyobj x.cpp