Include Files

Include directories are searched in the default system areas and whatever is specified by the -Idirectory  option. For multiple search directories, multiple -Idirectory  commands must be used. The compiler searches directories for include files in the following order:

How to Remove Include Directories

Use the -X option to prevent the compiler from searching the default system areas. You can use the -X option with the -I option to prevent the compiler from searching the default path for include files and direct it to use an alternate path.

For example, to direct the compiler to search the path /alt/include instead of the default path, do the following:

prompt>icpc -X -I/alt/include prog.cpp

See also Searching for Include Files.