简体   繁体   中英

Different types of extension error are showing on vs code after running c program

I have already installed Minigw on my 64-bit windows. I have installed VS code as a code editor.I have done the sample C programme to test the vs code. After installing the vs code I have installed all clang extensions and intelliSense extension .

My code is:-

   #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;
}

The vs code shows the following errors:-

1) Error Please install clang or check configuration clang.executable .

2) #include error detected. Please update your includePath. Intellisense features for this translation unit (c:\\user\\h\\Desktop\\codetest.c) will be provided by the tag parser.(1,1)

3) cannot open source file "stdio.h" (1,1)

What are the meaning of this errors?

Base on this link on vscode-github you need to do these steps:

  1. Install the basic setup of MinGW
  2. Modified the c_cpp_properties.json file in your VSCode as given in the GitHub link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM