Developer Guide and Reference

Contents

Specifying Include Files

The
Intel® oneAPI
DPC++/C++
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:
  1. Directories specified by the
    I
    option
  2. Directories specified in the environment variables
  3. Default include directories
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:
This content is specific to C++; it does not apply to
DPC++
.
// Linux icpx -X -I/alt/include prog1.cpp
// Windows icx /X /I\alt\include prog1.cpp
This content is specific to
DPC++
.
// Linux dpcpp -nostdinc -I/alt/include prog1.cpp
// Windows dpcpp /X /I\alt\include prog1.cpp

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.