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.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>If the filename has no suffix it will be searched <strong>for</strong> by appending each of a set of include file suffixes.When searching in a given directory all of the suffixes are tried in that directory be<strong>for</strong>e moving on to thenext search directory.The default set of suffixes is, no extension and .stdh.The default can be overriddenusing the --incl-suffixes command line option. A null file suffix cannot be used unless it is present in thesuffix list (that is, the C++ compiler will always attempt to add a suffix from the suffix list when the filenamehas no suffix).ExampleSuppose that the C++ source file test.cc contains the following lines:#include #include "myinc.h"You can call the C++ compiler as follows:cparm -Imyinclude test.ccFirst the C++ compiler looks <strong>for</strong> the file stdio.h in the directory myinclude relative to the currentdirectory. If it was not found, the C++ compiler searches in the environment variable CP<strong>ARM</strong>INC and thenin the default include directory.The C++ compiler now looks <strong>for</strong> the file myinc.h, in the directory where test.cc is located. If the fileis not there the C++ compiler searches in the directory myinclude. If it was still not found, the C++compiler searches in the environment variable CP<strong>ARM</strong>INC and then in the default include.cpp andinclude directories.5.3. C++ Compiler Error MessagesThe C++ compiler reports the following types of error messages in the Problems view of Eclipse.F ( Fatal errors)Catastrophic errors, also called 'fatal errors', indicate problems of such severity that the compilation cannotcontinue. For example: command-line errors, internal errors, and missing include files. If multiple sourcefiles are being compiled, any source files after the current one will not be compiled.E (Errors)Errors indicate violations of the syntax or semantic rules of the C++ language. Compilation continues,but object code is not generated.W (Warnings)Warnings indicate something valid but questionable. Compilation continues and object code is generated(if no errors are detected). You can control warnings in the C/C++ Build » Settings » Tool Settings »C/C++ Compiler » Diagnostics page of the Project » Properties <strong>for</strong> menu (C++ compiler option--no-warnings).174

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

Saved successfully!

Ooh no, something went wrong!