Cx51 User's Guide

INCDIR Compiler Directive

Abbreviation

None.

Arguments

Path specifications for include files enclosed in parentheses.

Default

None.

µVision

Options — C51 — Include Paths.

Description

The INCDIR directive specifies the location of the compiler include files. The compiler accepts a maximum of 512 path declarations. If more than one path declaration is specified the path names must be separated by semicolons.

Include files enclosed within double quote characters ('"') are searched for in the following folders in order:

  • The current folder.
  • The source file folder.
  • Paths specified by the INCDIR directive.
  • Paths specified by the C51INC environment variable.

Include files enclosed within angle bracket characters ('<>') are searched for in the following folders in order:

  • Paths specified by the INCDIR directive.
  • Paths specified by the C51INC environment variable.
Example
C51 SAMPLE.C INCDIR(C:\MYINC;C:\CHIP_DIR)