13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

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.

Tool OptionsC++ compiler option: --include-file (-H)Menu entry1. Select C/C++ Compiler » Preprocessing.The Pre-include files box shows the files that are currently included be<strong>for</strong>e the compilation starts.2. To define a new file, click on the Add button in the Pre-include files box.3. Type the full path and file name or select a file.4. (Optional) Enable the option Include CMSIS device register definition header file.Use the Edit and Delete button to change a file name or to remove a file from the list.Command line syntax--include-file=file-HfileDescriptionInclude the source code of the indicated file at the beginning of the compilation. This is the same asspecifying #include "file" at the beginning of each of your C++ sources.All files included with --include-file are processed after any of the files included with --include-macros-file.The filename is searched <strong>for</strong> in the directories on the include search list.Examplecparm --include-file=extra.h test1.cc test2.ccThe file extra.h is included at the beginning of both test1.cc and test2.cc.Related in<strong>for</strong>mationC++ compiler option --include-directory (Add directory to include file search path)Section 5.2, How the C++ Compiler Searches Include Files405

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

Saved successfully!

Ooh no, something went wrong!