microsoft / vscode-docs

Public documentation for Visual Studio Code
http://code.visualstudio.com/docs
Other
5.64k stars 4.58k forks source link

Problem with C compiler and SonarLint. #6454

Closed mvp-2003 closed 1 year ago

mvp-2003 commented 1 year ago

So I had been running C programs quite well, but I, totally by mistake, moved the important files for "gcc" into some different folder, which I don't remember and I am unable to run C programs now. The VS Code terminal says "Path to shell executable "C:\User..." does not exist. Now I am not to great with computers, so I don't know how to fix this problem. This probably is not a VS Code issue but I am still writing it down here, expecting for some help. Thank You.

gregvanl commented 1 year ago

Hi @mvp-2003 Have you tried reinstalling gcc? For your initial setup, were you working through a tutorial or class instructions? If so, you could reference those to repair your compiler installation.

mvp-2003 commented 1 year ago

I did not consider reinstalling gcc because at first I did not want to use up more space for the same program. Unfortunately, I am left with no other options other than re-installing gcc. I think that is the only solution I can have. And I actually did refer to a video for installing gcc because I myself did not know how to install it. Then I followed everything the instructor said in the videos, but I don't think I remember the instructions. I think it was a video on YouTube.

gregvanl commented 1 year ago

You could try following the GCC on Windows tutorial at https://code.visualstudio.com/docs/cpp/config-mingw. It has step-by-step guidance for setting up C++ for VS Code.

gregvanl commented 1 year ago

Closing as pointed user to existing tutorial and no reply