04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

The RVCT40INC environment variable is set to the default system include path unless you<br />

use -J to override it. Angle-bracketed include files are searched for first in the list of<br />

system includes, followed by any include list specified with the option -I.<br />

Note<br />

On Windows systems, you must enclose RVCT40INC in double quotes if you specify this<br />

environment variable on the command line, because the default path defined by the<br />

variable contains spaces. For example:<br />

armcc -J"%RVCT40INC%" -c main.c<br />

Syntax<br />

-Jdir[,dir,...]<br />

Where:<br />

dir[,dir,...]<br />

is a comma-separated list of directories to be added to the list of<br />

system includes.<br />

At least one directory must be specified.<br />

When specifying multiple directories, do not include spaces<br />

between commas and directory names in the list.<br />

See also<br />

• -Idir[,dir,...] on page 2-72<br />

• --kandr_include<br />

• --preinclude=filename on page 2-105<br />

• --sys_include on page 2-121<br />

• Header files on page 2-14 in the Compiler User Guide.<br />

2.1.96 --kandr_include<br />

This option ensures that Kernighan and Ritchie search rules are used for locating<br />

included files.<br />

The current place is defined by the original source file and is not stacked. If you do not<br />

use this option, Berkeley-style searching is used.<br />

See also<br />

• -Idir[,dir,...] on page 2-72<br />

• -Jdir[,dir,...] on page 2-77<br />

2-78 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!