c - How to make ARM Eclipse for DS-5 aware of compiler predefined macros? -
i using arm eclispe ds-5 environment maintain , build command-line (makefile based) project. using eclipse's indexer analyze code intelligent browsing , editing, looks not recognize underlying arm c compiler 5 predefined macros. example, if have in code:
#warning "xxxxxxxx im here 1 xxxxxxx" #ifdef __arm__ #warning "xxxxxxxx im here 2 xxxxxxx" #endif
then when compiling module see first , second warnings (the compiler aware of own __arm__
macro, of-course). however, in editor, code in #ifdef
block grayed out. consequently, have hundreds of false error indications in problems
view.
how can make environment aware of compiler built-in settings?
* using arm ds-5 version 5.20, , armcc version 5.05
you can set eclipse c/c++ project properties: preprocessor include paths, macros. adding macros or preprocessor file helps understand compiler predefines/macros eclipse.
note entries set on individual resource, such file or folder. open file or folder properties inspect resource-specific entries. entries on folder or project apply subfolders , c/c++ files under - unless overridden on lower level.
for more information can check link setting include paths , macros c/c++ indexer
Comments
Post a Comment