7.127 --preinclude=filename

Includes the source code of the specified file at the beginning of the compilation.

Syntax

--preinclude=filename
Where:
filename
is the name of the file whose source code is to be included.
If filename is unspecified, the compiler faults use of --preinclude.

Usage

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.

Restrictions

Sub-directories of directories specified on the include search list are not searched.

Examples

armcc --preinclude file1.h --preinclude file2.h -c source.c
Related concepts
2.9 Factors influencing how the compiler searches for header files
Related reference
7.84 -Jdir[,dir,...]
7.73 -Idir[,dir,...]
7.85 --kandr_include
7.148 --sys_include
2.10 Compiler command-line options and search paths
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.