HomeForumsWhat's newResources 
 
 
SGDK in visual studio code showing errors but compiles ok
krank - Nov 12, 2024
 krank Nov 12, 2024
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 ) 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 " 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

 krank Nov 12, 2024
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.

 Tiviat Dec 27, 2024
Yeah, may be late to this thread , but yeah. Its NOT a problem. You are good. Ive even uploaded my dev roms to my MegaDrive Mini, and Gen32 Surreal emulator, to just to see if the compiled binary works correctly.