Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

SDK • Re: Blink example code Clangd warnings and errors

$
0
0
I've tried closing and reopening VS Code a few times after each alteration and that didn't seem to change anything, and adding those "#ifndef...#endif" blocks you've shared didn't seem to change anything either. Just tried the 8 step process you outlined and all the same too, there's no .clangd in the project source directory either.

FWIW, when I create the hello_usb.c example code (which also compiles and runs perfectly fine) I get similar errors. The order of the #include statements differs, so instead it initially complains about <stdio.h>

Code:

'stdio.h' file not found
when that is included, and then during main(), printf also is highlighted as an error saying:

Code:

Call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations


The steps you've taken worked for you, so presumably there is something more deeply wrong with how I've installed Clangd or something.

Statistics: Posted by MinViableEngineer — Sat Jan 17, 2026 7:20 pm



Viewing all articles
Browse latest Browse all 8051

Trending Articles