1

I started a small programming course, and we are trying to set up the gcc compiler in Visual Studio Code in my students' laptops. I had a problem with two students in which we installed MinGW, we edited the Path variable and added the address at which MinGW\bin is stored. We ran gcc in the CMD and it recognized the command. However, when we try to execute a C code in VSC, it keeps saying that gcc isn't recognized as a command, path, etc. What could be wrong? We already have the extensions "C, C++" and "Code Runner".

1
  • try opening VSC through cmd, then again try the gcc command Commented Apr 27, 2021 at 13:41

1 Answer 1

1

we edited the Path variable

This edit is applied to new command windows, etc but not to anything already open and running.

Shut down VSCode and restart.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.