Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code doesn't recognize Pi Pico SDK headers

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!

like image 684
Jake A Avatar asked Sep 01 '26 19:09

Jake A


1 Answers

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.

enter image description here

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.

enter image description here

Hope this helps!

like image 102
youngermax Avatar answered Sep 04 '26 10:09

youngermax



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!