GCC/G++ is not recognized as an internal or external command, operable program or batch file

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so i have this extremely simple c program in visual studio code and when i try to run it i get this error g plus plus is not recognized as an internal or external command operable program or batch file the reason it happened is that we don't have a c plus plus compiler installed on our system so all we need to do is install one let's open the web browser and let's head over to msys2.org here we need to download the installer and then we need to run it great let's follow the instructions first we need to enter the desired installation folder it needs to be short and contain no spaces so i'll go with the default we need a start menu shortcut so let's click on next and it's been installed okay it took a minute but it's finally done now i'm going to leave this box checked and click on finish and we get a small linux like terminal we now need to run this command which i'm going to copy from here and paste it and we'll be next if we want to proceed with installation so let's click on y and enter so this is done and now we need to run this command at step 7 so let's copy it and let's paste it and we need to press enter again and let's proceed with the installation so let's press y and enter and it's finally done we can close this terminal let's open the installation folder where we installed ms2 and it was in c [Music] m c is 64. over here we now have mingw64 and here we have the bin folder let's copy this path and we need to add it to the system's path variable so let's look for system variables and we want to edit the system environment variables here it is environment variables and the one we want to edit is the path this one so let's click on edit and let's click on new and paste the path we copied great let's click on ok to close this window let's now get back to visual studio code and we need to close visual studio code and then reopen it and let's try running our program now and it worked and we see the expected output
Info
Channel: Abstract programmer
Views: 36,140
Rating: undefined out of 5
Keywords:
Id: ACqnO0PJB4c
Channel Id: undefined
Length: 3min 54sec (234 seconds)
Published: Thu Jun 30 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.