Home > Mobile >  how do I run a C code using VS Code after installing gcc?
how do I run a C code using VS Code after installing gcc?

Time:07-28

After installing gcc on my Windows PC, I tried running a simple C program but, I keep getting an error message saying, "Unable to find executable for 'C\Users\Asi Polcarp\Desktop\Cprograms<executable.exe>'" This message is from VS Code.

# include <stdio.h>
void main()
{
    printf("welcome");
}

CodePudding user response:

first of all you need to put path of the GCC file to the folder environmental variables and try to compile it in the folder where you have actually put the path address.

CodePudding user response:

In order to run C/C codes or most of other programming languages on VS Code I suggest the 'Code Runner' extension.

  • Related