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> when that is included, and then during main(), printf also is highlighted as an error saying:
The steps you've taken worked for you, so presumably there is something more deeply wrong with how I've installed Clangd or something.
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 foundCode:
Call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarationsThe 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