INCLUDE Environment Variable
The INCLUDE environment variable value:
- Contains a path of directories delimited by colons (:)
- Does not override the order
- Has higher priority in the search order than the default include path
- Has a lower priority in the search order than INCDIR and the root source's directory (for a user-defined include search)
If the include search contains a defined INCLUDE environment variable for both C and C++ compilers, the resulting include search order including is as shown in the following table:
#include type | Directory Search Order |
---|---|
#include <file_name> |
|
#include "file_name" |
|
Note: This feature is only available for source stream file compiles.