Keil µVision (MDK) - error list shows errors but compiler completes without errors

Hi

I've got an old project, in which the header include structure was defined to only include header files in the *.C files.

The project team wants to keep the structure like it is, as well for new developments / adaptations.


The problem I observe in MDK is, that the 'Error List' view  shows several errors in such header files, mostly because of unknown types. 

Those types are defined in different headers, which resolve in the *.c files well because they are included in the correct dependent order.


The errors are as well marked with red crosses on the lines, they are recognized.

As the compiler can compile the projects and files without errors, so this is just a problem of MDK (autocompletion/intellisense/ ...?).


I did not find the place to deactivate this error recognition until now.

Is it possible to adapt this feature so it only recognizes the errors of the compiler outputs or at least deactivate this feature?

Parents
  • Usually, the compiler within µVision should see the same source code/header files as the compiler that generates the code during a project build. Maybe there is something wrong with the include paths.

    In any case, you can deactivate 'Dynamic Syntax Checking' in the µVision 'Configuration' dialog to deactivate the red crosses. This is a global setting for µVision and not just a setting for this project.

Reply
  • Usually, the compiler within µVision should see the same source code/header files as the compiler that generates the code during a project build. Maybe there is something wrong with the include paths.

    In any case, you can deactivate 'Dynamic Syntax Checking' in the µVision 'Configuration' dialog to deactivate the red crosses. This is a global setting for µVision and not just a setting for this project.

Children
No data