vscode中'stdio.h' file not found

VScode警告'stdio.h' file not found

image-20260114091244761

gcc -v检查自己的编译环境

当Cygwin64 版本:GCC 9.3.0(已验证头文件路径 /usr/include/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/include 存在且正常)

再检查clangd,是否配置Cygwin64 的编译环境和头文件路径

我的问题是clangd中没有添加和头文件路径

image-20260114091416684

在如图的选项中点击添加项

image-20260114091438121

image-20260114091504586

输入:-IC:\cygwin64\usr\include

找到自己的地址

-I自己的地址

posted @ 2026-01-14 09:24  郭小胖  阅读(3)  评论(0)    收藏  举报