/[no]include

Syntax:

/include[:path...], /noinclude, or /Ipath

The /include or /I option specifies one or more additional directories (path) to be searched for module files (USE statement) and include files (INCLUDE statement).

In the visual development environment, specify Custom INCLUDE and USE Path in the Preprocessor Compiler Option Category.

For all USE statements and for those INCLUDE statements whose file name does not begin with a device or directory name, the directories searched are as follows:

  1. The directory containing the first source file or the current directory (depends on whether /assume:source_include was specified).
  2. The current default directory where the compilation is taking place
  3. If specified, the directory or directories listed in the /include:path or /Ipath option. The order of searching multiple directories occurs within the specified list from left to right
  4. The directories indicated in the environment variable INCLUDE

To request that the compiler search first in the directory where the source file resides instead of the current directory, specify /assume:source_include.

Specifying /noinclude (or /include or /I without a path) prevents searching in the standard directory specified by the INCLUDE environment variable.