|Non-Confidential||PDF version||ARM DUI0472J|
|Home > Compiler Command-line Options > --preinclude=filename|
Includes the source code of the specified file at the beginning of the compilation.
is the name of the file whose source code is to be included.
filename is unspecified, the compiler faults
Use this option to establish standard macro definitions. The
filename is searched for in the directories on the
include search list.
It is possible to repeatedly specify this option on the command line. This results in pre-including the files in the order specified.
Sub-directories of directories specified on the include search list are not searched unless
--arm_linux. If you use
--arm_linux, the compiler
includes the arm_linux subdirectory in its search for pre-include
armcc --preinclude file1.h --preinclude
file2.h -c source.c