| |||
| Home > Compiler Command-line Options > Command-line options > ‑Jdir[,dir,...] | |||
This option adds the specified directory, or comma-separated list of directories, to the list of system includes.
Warnings and remarks are suppressed, even if --diag_error is
used.
The RVCT40INC environment variable is set
to the default system include path unless you use -J to
override it. Angle-bracketed include files are searched for first
in the list of system includes, followed by any include list specified
with the option -I.
On Windows systems, you must enclose RVCT40INC in
double quotes if you specify this environment variable on the command
line, because the default path defined by the variable contains
spaces. For example:
armcc -J"%RVCT40INC%" -c main.c
-Jdir[,dir,...]
Where:
dir[,dir,...]is a comma-separated list of directories to be added to the list of system includes.
At least one directory must be specified.
When specifying multiple directories, do not include spaces between commas and directory names in the list.
Header files in the Compiler User Guide.