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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tool OptionsControl program option: --include-directory (-I)Menu entry1. Select C/C++ Compiler » Include Paths.The Include paths box shows the directories that are added to the search path <strong>for</strong> include files.2. To define a new directory <strong>for</strong> the search path, click on the Add button in the Include paths box.3. Type or select a path.4. Optionally enable the option Add CMSIS include paths.Use the Edit and Delete button to change a path or to remove a path from the list.Command line syntax--include-directory=path,...-Ipath,...DescriptionWith this option you can specify the path where your include files are located. A relative path will berelative to the current directory.The control program passes this option to the compiler and the assembler.ExampleSuppose that the C source file test.c contains the following lines:#include #include "myinc.h"You can call the control program as follows:ccarm --include-directory=myinclude test.cFirst the compiler looks <strong>for</strong> the file stdio.h in the directory myinclude relative to the current directory.If it was not found, the compiler searches in the environment variable and then in the default includedirectory.The compiler now looks <strong>for</strong> the file myinc.h in the directory where test.c is located. If the file is notthere the compiler searches in the directory myinclude. If it was still not found, the compiler searchesin the environment variable and then in the default include directory.Related in<strong>for</strong>mationC compiler option --include-directory (Add directory to include file search path)613

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

Saved successfully!

Ooh no, something went wrong!