So I have everything setup to compile in Windows Subsystem for Linux and that is all working fine. I'm writing my code in VS Code and it doesn't recognize the headers such as "pico/stdlib.h". The code compiles and works fine but it would be nice to get Code setup properly so I get the auto-fill features and such.
How do I properly link the SDK libs with VS Code?
Thanks!
I experienced this same issue.
Edit the include path by hovering over the red underlined #include lines, click Quick fix..., and click the edit includePath option.

Scroll down to the Include path section and add ${env:PICO_SDK_PATH}/**. Make sure the setting saves properly. This adds the SDK directory by the PICO_SDK_PATH environment variable which contains the headers and associated files.

Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With