vs代码没有识别pi pico sdk标头

发布于 2025-01-25 04:47:07 字数 166 浏览 1 评论 0 原文

因此,我可以在Windows子系统中为Linux编译所有设置,这一切都很好。我正在用VS代码编写我的代码,但它不识别诸如“ pico/stdlib.h”之类的标题。代码编译和工作正常,但是正确获得代码设置非常好,因此我获得了自动填充功能等。

如何将SDK LIB与VS代码正确链接?

谢谢!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偷得浮生 2025-02-01 04:47:07

我遇到了同样的问题。

通过悬停在红色带下划线的 #include 行上来编辑Include路径,单击快速修复... ,然后单击“编辑 includepath 选项。

滚动到 include path 部分,然后添加 $ {env:pico_sdk_path}/** 。确保设置可以正确保存。这将通过 pico_sdk_path 环境变量添加SDK目录,其中包含标题和关联的文件。

希望这会有所帮助!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文