This option serves to specify the unit path, where the compiler looks for unit les. f$UNITPATH XXXg will add XXX to the unit path. XXX can contain one or more paths, separated by semi-colons or colons.
For example:
{$UNITPATH ../units;../i386/units}
Uses strings; |
will add the directories ../units and ../i386/units to the unit path of the compiler. The compiler will look for the le strings.ppu in both these directories, and will link the rst found le in the program. This directive is equivalent to the -Fu command-line switch.
Caution is in order when using this directive: If you distribute les, the places of the les may not be the same as on your machine; moreover, the directory structure may be di erent. In general it would be fair to say that you should avoid using absolute paths, instead use relative paths, as in the example above. Only use this directive if you are certain of the places where the les reside. If you are not sure, it is better practice to use make les and make le variables.