5.8.4.4 XC-DSC C++ Compiler - Preprocessing and Messages
| Option | Description | Command Line |
|---|---|---|
| Processor macros | Project-specific preprocessor macro
defines passed via the compiler's –D option. | -Dmacro |
| Include directories | Add 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 errors | Check to halt compilation based on warnings as well as
errors. Uncheck to halt compilation based on errors only. | -Werror |
| Additional warnings | Check to enable all warnings. Uncheck to disable warnings. | -Wall |
| Enable address-attribute warning | Emit a warning for all uses of the
address() attribute. This option is for
engineering-support use only. | |
| Support ansi | Check 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 syntax | Check 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 syntax | Check 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 |
