即使gcc工作,C文件也无法在VS代码中成功编译

When I type gcc, it does not show any error meaning compiler working and gcc -g main.c -o file.exe does not create an.exe file to execute; when I run the code it gives : cd "c:\Users\Shourya\Desktop\Coding\C\" ; if ($?) { gcc tut1.c -o tut1 } ; if ($?) { .\tut1 } tut1 being the file name. When I try to use compile run extension it just simply displays "Error Compiling". I have added gcc in path and I have also configured compiler in VS Code. Please do help..

评论