saving . . . saved mingw installation problem. has been deleted. mingw installation problem. has been hidden .
mingw installation problem.
Title
Question
need help!
win11
'gcc' is not recognized as an internal or external command,
operable program or batch file."


C-and-Cpp First-C-Program 00-01 min 0-10 sec 03-03-22, 6:48 p.m. pip

Answers:

Please go through the Installation Sheet thoroughly.  Please follow all the steps and then begin with the video.  Here is the link-
https://spoken-tutorial.org/media/videos/43/C-and-Cpp-Installation-Sheet-English.pdf

If you have already installed gcc please do the following:
You will have to set correct gcc path in the environment variable.
1. Go to Control Panel → System and Security → System or right-click on This PC → Properties.
2. Click on Advanced system settings. It opens System Properties dialog box.
3. In System Properties window, under Advanced tab, click on "Environment Variables…" button. It opens the environment variables window.
4. In the Environment variable window under System variables select path variable and click on Edit. Make sure to set value in the System variable and not in the user variable.
5. Add gcc compiler path upto bin folder in the variable value as shown below and click OK.
6. Close all windows and open new command prompt and compile your program. Now it should compile your program without any error.
04-03-22, 10:04 a.m. hbammkanti


Log-in to answer to this question.