This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DS-5 compiler defines eclipse highlighting

I am working on a C project in DS5 v5.22.0. I have set some preprocessor defines in Properties > C/C++ General > Paths and Symbols > Symbols. I see it set when I go to C/C++ Build > Settings > ARM C++ Compiler 5 > All options, and when I build the define is clearly working. However the syntax highlighting in eclipse isn't working, it always appears as if the preprocessor define is not set. This blog article describes how to set things up for other compilers in eclipse but no such luck with DS5: https://mcuoneclipse.com/2012/10/05/compiler-defines-and-eclipse-editor-highlighting/

Anyone else encounter this problem? Ideas how to fix?

Jacob

Parents
  • I found the issue, in Properties > C/C++ General > Indexer we had set "Use a fixed build configuration" set for "Build configuration for the indexer", instead we want to set "Use active build configuration" with "Reindex project on change of active build configuration". This will correctly update the highlighting for preprocessor defines.

Reply
  • I found the issue, in Properties > C/C++ General > Indexer we had set "Use a fixed build configuration" set for "Build configuration for the indexer", instead we want to set "Use active build configuration" with "Reindex project on change of active build configuration". This will correctly update the highlighting for preprocessor defines.

Children
No data