Questions and discussions about the SDK tools used to program the TD RF modules.
User avatar
mstempin
 
Posts: 168
Joined: Thu May 07, 2015 9:24 am

How to get rid of (most) errors in Eclipse Problem tab

by mstempin Tue May 19, 2015 8:50 am

In order to provide syntax highlighting, check and code outline, Eclipse is using a built-in C/C++ interpreter that is different from the gcc compiler used to build the firmwares.

Although the way code is interpreted is very close, it is not strictly equivalent, leading to many errors in the "Problem" tab, whereas the gcc compiler just works fine and generates a firmware without error or warning.

In particular, there are differences in the settings used by the built-in C/C++ interpreter that can be accessed from the "Window > Preferences" menu::
Indexer.PNG
Indexer Preferences
Indexer.PNG (36.39 KiB) Viewed 2176 times

Among other things, the above settings set all limits that would otherwise stop indexing to extremely high values, enable all options and disable all skip ones. The indexer is also set to mirror the follow the changes of build configuration (Release, Debug...) such that preprocessor conditional blocks are greyed out correctly.

Make sure that all your settings match the above ones. Unfortunately, these settings are stored in each workspace, so there is no way to provide them by default for newer workspaces in an easy way ; :?

Once indexer settings changed, you must rebuild the index for each project by selecting the "Index > Rebuild" item in the project's contextual menu.
disk91
 
Posts: 58
Joined: Thu May 07, 2015 4:30 pm

Re: How to get rid of (most) errors in Eclipse Problem tab

by disk91 Sun May 24, 2015 9:37 am

TOP ! Thank for this, it helps a lot .. was looking for the right solution since a long
Return to Tools

Who is online

Users browsing this forum: No registered users and 25 guests