Datasheet
C and C++ Compilers
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-7
The original current place
install_directory\include
is restored only when the
compiler has finished processing
defs.h
.
You can disable the stacking of current places by using the compiler option
-fk
. This
option makes the compiler use the search rule originally described by Kernighan and
Ritchie in The C Programming Language. Under this rule each nonrooted user
#include
is sought relative to the directory containing the source file that is being compiled.
The ARMINC environment variable
You can set the
ARMINC
environment variable to a comma-separated list of directories to
control searching for included header and source files. For example, from a Windows
command line, type:
set ARMINC=c:\work\x,c:\work\y
When compiling from the command line, directories specified with
ARMINC
are searched
immediately after directories specified by the
-I
option on the command line have been
searched. If the
-j
option is used,
ARMINC
is ignored.