5.8.4.4 XC-DSC C++ Compiler - Preprocessing and Messages

Table 5-28. Preprocessing and Messages Options
OptionDescriptionCommand Line
Processor macrosProject-specific preprocessor macro defines passed via the compiler's –D option.-Dmacro
Include directoriesAdd a directory to the head of the list of directories to be searched for header files.

Relative paths are from the project directory.

If you want a single place to have include paths for compilers and assembler, use the include paths in the global options node.

-I"dir"
Make warnings into errorsCheck to halt compilation based on warnings as well as errors.

Uncheck to halt compilation based on errors only.

-Werror
Additional warningsCheck to enable all warnings.

Uncheck to disable warnings.

-Wall
Enable address-attribute warningEmit a warning for all uses of the address() attribute. This option is for engineering-support use only.
Support ansiCheck to support all (and only) ANSI C programs.

Uncheck to support ANSI and non-ANSI programs.

-ansi
Strict ansi

Check to issue all the warnings demanded by strict ISO C and ISO C++; reject all programs that use forbidden extensions and some other programs that do not follow ISO C and ISO C++.

Uncheck to issue all warnings.

-pedantic
Use CCI syntaxCheck if your code is written per the Common C Interface (CCI) syntax (see 25 Common C Interface).

Uncheck if you are not.

-mcci
Use IAR syntaxCheck if your code is written per the Embedded Compiler Compatibility Mode syntax for IAR (see 24 Embedded Compiler Compatibility Mode).

Uncheck if you are not.

-mext=IAR