SGDK in visual studio code showing errors but compiles ok

Hello,
I have a project in SGDK with visual studio code. I have created a "inc" folder and put some header files in there with matching "c" files in the "src" folder. Strangely most of the include files (including <genesis.h>) are underscored in red as like there is an error. But the program compiles ok and the bin file runs.

When hovering the mouse over "#include <genesis.h>" I get the message:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (D:\xxx\src\main.c).C/C++(1696)

When hovering the mouse over other includes it says:
cannot open source file "time.h". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696)

How can I correct that?

Thanks
 
Hello,
I need to add some more.

In my headerfiles it shows also the red underscore under all the uint8_t parameters in functions. Error message when hovering is "identifier "uint8_t" is undefinedC/C++(20)" but as stated the program compiles correctly.
It seems that VS is just showing errors that are not realy errors.
 
Back
Top