当前位置:   article > 正文

在使用VSCode编写C程序时,出现错误:cannot open source file "stdio.h"_cannot open source file "stdio.h". please run the

cannot open source file "stdio.h". please run the 'select intellisense confi

配置好MinGW-W64和LLVM的环境变量后,在VSCode下载了C/C++插件,也重启了VSCode,但是编写的测试程序还是报错:

  1. #include<stdio.h>
  2. int main(){
  3. printf("helo world\n");
  4. return 0;
  5. }

将鼠标放上去发现错误,然后将鼠标移开后发现有一个黄色的灯,将鼠标在移到小黄灯上,然后点击第一个Edit"includePath" setting。

点击输入框的右侧下拉选,选中末尾是gcc.exe。然后重新运行测试程序。

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/688993
推荐阅读
相关标签
  

闽ICP备14008679号