vs代码没有识别pi pico sdk标头
因此,我可以在Windows子系统中为Linux编译所有设置,这一切都很好。我正在用VS代码编写我的代码,但它不识别诸如“ pico/stdlib.h”之类的标题。代码编译和工作正常,但是正确获得代码设置非常好,因此我获得了自动填充功能等。
如何将SDK LIB与VS代码正确链接?
谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题。
通过悬停在红色带下划线的
#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, clickQuick fix...
, and click the editincludePath
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 thePICO_SDK_PATH
environment variable which contains the headers and associated files.Hope this helps!