2.1.132. --preinclude=filename

This option instructs the compiler to include 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.

Usage

This option can be used 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 preincluding the files in the order specified.

Example

armcc --preinclude file1.h --preinclude file2.h -c source.c

See also

Copyright © 2007-2010 ARM. All rights reserved.ARM DUI 0348C
Non-ConfidentialID101213