首页 文章

运行c程序后,对代码显示不同类型的扩展错误

提问于
浏览
0

我已经在我的64位窗口上安装了Minigw . 我已经安装了VS代码作为代码编辑器 . 我已经完成了示例C程序来测试vs代码 . 安装vs代码后,我安装了所有 clang extensionsintelliSense extension .

我的代码是: -

#include <stdio.h>

    int main() {
    int a,b,c;

    printf("enter the no.");

    scanf("%d%d",&a,&b);

    c=a+b;
    printf("%d",c);

    return 0;
}

vs代码显示以下错误: -

1) Error 请安装clang或检查配置 clang.executable .

2)检测到#include错误 . 请更新您的includePath . 该翻译单元的智能感知功能(c:\ user \ h \ Desktop \ codetest.c)将由标签解析器提供 . (1,1)

3)无法打开源文件“stdio.h”(1,1)

这个错误是什么意思?

1 回答

  • 0

    基于vscode-github上的此链接,您需要执行以下步骤:

    • 安装MinGW的基本设置

    • 修改了VSCode中的c_cpp_properties.json文件,如GitHub链接中所示 .

相关问题