Thanx a lot for this video. The installation process of MinGW has changed and most of the videos are old. Only this one explains the current procedure, thanks a lottt!!!
This man is a genius. He has figured out how to time travel. He just simply says “ Im going to fast forward” it happens, he travels into the future. Why isn’t anyone talking about this??!!??
I tried another video, it told me to download some msys64 stuff, afterwards it told me to download some packages of mingw and that took over 15 mins. Finally when I thought it was done, I checked and it showed that there was some errors and the download was interrupted. Overall this whole process took me an hour and 30 mins until I found your video. LITERALLY! IT TOOK ME LESS THAN 5 MINS WHEN I WAS FOLLOWING UR GUIDE! Just know that I love this your video's and your a lifesaver!
Worked like a charm. I had to restart VS Code to effect the changes as I was having errors of "GCC not blah blah" until I restarted the software. Thanks!
Thank you very much. I'm a rookie programmer who is only 18. But I love programming very much and I'd like to use vs code to program. I used to code python which is the simplest program language and already set up in vs code. So I don't need to do anything to activate it like C++. But when I wanted to try C++. I found it doesn't work at all. I tried to change some setting in vs code but it doesn't work still. After watching this video I finally know actually I should install MinGW and code runner. Thank you very much. I'll keep coding
If you're getting an error in vscode after trying to run your scripts, you likely did nothing wrong try restarting your vscode after you've installed and added mingw to your path.
Thanks man, this helped. "For those who are still facing the error "gcc is not recognized". Just type "set Path=C:\MinGW\bin;%PATH%" and press enter." also helped me before that.
After countless videos, this was the only one that worked for me. You are a lifesaver! Edit : Please help, it runs just fine but does not let me input any values in the output tab, I unchecked read- only attribute and it still doesnt work. Please please help
finally !!!! Thanks a lot .... saw lots of video... tried again and again ..... followed your steps just once and its working .....thankyou very much !!!!!!
If your having troubles about vs code not finding the g++ command of your MinGW, at this point of tutorial (3:52) when you created a new variable as your path move that to the top by using the move up button, then restart your terminal/vs code and that should work.
Thanks for making this video for C++ beginners! I appreciate your effort on describing the process of the instalation of the compiler, as well as the process of setting up the right path to make the compiler works. Again, thanks!
Thank you so much. I have been having so many issues with all the other videos simply trying to get Visual Studio code set up and I finally came across your video and everything went smoothly. This video was so useful thank you so much again.
For those, who gets an error even after adding environment variable (path). You can add it to system path, and relaunch you cmd. It will work just fine.
@@ArchanaKumari-wh9dj In your start menu, search for env, click on "Environment Variables", then in the "System variables", double click on "Path", "new" and insert the path there.
Thank you So So Much, I've been trying to figure out why my code wouldn't output. But now I am able to use Visual Studio Code because of you. Thank you so much!
In cs50 they just went straight into teaching us code on VS code and completely skipped telling us how to set it up. I was completely dumbfounded getting so many error messages just trying to type hello, world XD
I thought the same thing but actually David mentions that they are using their cloud version Witch you can access very easily in the page of cs50, I don’t know if any of you are taking it entirely on UA-cam but the page has a ton of information besides the lectures, like de duck AI, vs code for cs50, GitHub access for the problem sets and more información about the topics.
The reason for this was because people actually in that class were given a cloud based version, meaning they didn't have to install anything and were able to just jump in and start coding. Then much later on down the line David mentioned he would help them install it onto their computers so when the class was over they could continue working on projects even if it's the only class they take, but for everyone else, yea we have to just figure it out lmao
@@thecodebeary, Everything was going perfect but after compiling (gcc file.c) .exe file was not creating...as a result, after giving command .\a.exe, code is not running Plz help
This got to be the funniest thing ever,i did precisely everything you did,and it was going well,all of it,and in the very end when i clicked to run the file it appeared that gcc is not reconized as a internal or external command,im always out of luck with this computing tutorials,every single video it doesnt work for me,always,but thanks anyway XD.
Thank you very much. I was lost at first and thought “why do I need to do all these steps?” Because in my school the PCs were probably already setup. I was a bit skeptical 😅 and to be fair I’m still a bit worried if I did anything wrong but nevertheless I am able to code in VS now.
I got no errors in the command prompt but while running the programs it is showing, 'gcc' is not recognised as an internal or external command, operable program or batch file. How to fix it?
open command promt and write gcc. is it working? if not then system path not setup. it cant find gcc.exe magically. you need tell what folder is it i open terminal on vscode gcc -o test.exe test.c boom! zaam! no need any extensions. it means i can easy use notepad and console like 20 years
sorry, if when we check gcc at cmd and it says 'gcc' is not recognized as an internal or external command, operable program or batch file. what i have to do?
here i have changed the environmental path but i have an error or "'gcc' is not recognized as an internal or external command, operable program or batch file."
If that didn't work checkout the updated version here : ua-cam.com/video/KnPj8Ow3bM8/v-deo.html
Thanx a lot for this video. The installation process of MinGW has changed and most of the videos are old. Only this one explains the current procedure, thanks a lottt!!!
This man is a genius. He has figured out how to time travel. He just simply says “ Im going to fast forward” it happens, he travels into the future. Why isn’t anyone talking about this??!!??
chusssssssssss
Lol ! 😂
sahi kaha yr @@nightopia2911
Hehe🤣🤣🤣🤣🤣🤣
I tried another video, it told me to download some msys64 stuff, afterwards it told me to download some packages of mingw and that took over 15 mins. Finally when I thought it was done, I checked and it showed that there was some errors and the download was interrupted. Overall this whole process took me an hour and 30 mins until I found your video. LITERALLY! IT TOOK ME LESS THAN 5 MINS WHEN I WAS FOLLOWING UR GUIDE! Just know that I love this your video's and your a lifesaver!
true
and the funny thing is that video has more views than this one
WHAT A FOOKIN TIMEWASTE
bro i asked chatgpt it made me do all of that stuff but it didnt worked
this finally helped me
Just wanted to say thank you! This was simple, and worked for me without problems. Very well done!
Glad it helped!
This channel gives you exactly what you need
Bro thank you so much some guy had a 4 hour tutorial that didnt help at all but you fixed all my problems in just 5 minutes, I subbed and liked!
Worked like a charm. I had to restart VS Code to effect the changes as I was having errors of "GCC not blah blah" until I restarted the software. Thanks!
I have the same problem. How did you restart VS Code?
was struggling with this step! all I had to do was restart. thanks much
Since 3 months now I can run the code successfully... Ahhh... Thanks a lot bro..
Im glad it helped
You can't imagine how much it helped me, I was searching for this information for a very long time.
Definitely precise and to the point, if the script doesn’t work once you install, restart your device and open up VScode it should work fine
Thank you so much finally I have installed it successfully....I was doing it for past 3 months and now I am able to install.. Thank you again🥰
Thank you very much. I'm a rookie programmer who is only 18. But I love programming very much and I'd like to use vs code to program. I used to code python which is the simplest program language and already set up in vs code. So I don't need to do anything to activate it like C++. But when I wanted to try C++. I found it doesn't work at all. I tried to change some setting in vs code but it doesn't work still. After watching this video I finally know actually I should install MinGW and code runner. Thank you very much. I'll keep coding
If you're getting an error in vscode after trying to run your scripts, you likely did nothing wrong try restarting your vscode after you've installed and added mingw to your path.
Thanks man, this helped. "For those who are still facing the error "gcc is not recognized". Just type "set Path=C:\MinGW\bin;%PATH%" and press enter." also helped me before that.
@@grimmister where to type this in terminal or any other ?
Thank you so much!
Tq very much brother it helped a lot ♥️♥️
@@SunilSuni-qd3edIt still not work written as system cannot find the path specified what should I do now ?
thanks for the easy tutorial! configuration is way much harder than coding itself 😄
Lol ! I'm glad it helped
Nah fr😵💫
idk why microsft not just make c++ as the base code language without setup like this. It's so pointless
After so many try to run c++ on visual Studio code finally this video is working perfectly, no issue is there🎉❤
After countless videos, this was the only one that worked for me. You are a lifesaver!
Edit : Please help, it runs just fine but does not let me input any values in the output tab, I unchecked read- only attribute and it still doesnt work. Please please help
omg I was struggling so much with Visual Studio, I didn't knew mingw was a thing
finally !!!! Thanks a lot .... saw lots of video... tried again and again ..... followed your steps just once and its working .....thankyou very much !!!!!!
If your having troubles about vs code not finding the g++ command of your MinGW, at this point of tutorial (3:52) when you created a new variable as your path move that to the top by using the move up button, then restart your terminal/vs code and that should work.
Thank you so much
THANK YOU SO MUCHHHH
Thank You Very Much
Thank you!
Thank you so much man❤❤❤❤
Thanks for making this video for C++ beginners! I appreciate your effort on describing the process of the instalation of the compiler, as well as the process of setting up the right path to make the compiler works. Again, thanks!
🤩Thanks man, finally got my C program compiled and ran in VS Code, woo-hoo! :D
Thank you so much. I have been having so many issues with all the other videos simply trying to get Visual Studio code set up and I finally came across your video and everything went smoothly. This video was so useful thank you so much again.
For those, who gets an error even after adding environment variable (path). You can add it to system path, and relaunch you cmd. It will work just fine.
but how
@@ArchanaKumari-wh9dj In your start menu, search for env, click on "Environment Variables", then in the "System variables", double click on "Path", "new" and insert the path there.
That's not eirking
Working
@@jeramiahcogar8277 try to save ur code b4 running maybe it worked for me
Thank you so much for this genuinely, I had been trying different things for almost 2 hours and now all my errors are finally fixed, thanks a lot!!
Thank you So So Much, I've been trying to figure out why my code wouldn't output. But now I am able to use Visual Studio Code because of you. Thank you so much!
Glad I could help!
Very helpful. I was trying to fix the issue of my code not running at all when I stumbled across this video. Worked for me very well
You are incredible! This was super thorough, so many other videos led me down the wrong path.
Omg thank sooo much I need to ran it for college , such easy explanation
If you face any problem on cmd close and open it again
I spent 3 days and some change to find the correct compiler path, and you literally save me!
thanks it worked. after struggling with it for months, finally the problem is solved.
Just tell your viewers to restart VSCode if it was already open. Otherwise, very straightforward instructions.
thanks man this was what was missing
That was the most helpful video I've even seen and thank you for making it short
Glad it was helpful!
It worked! Concise and straight to the point.
Finally run C++ on VS code. Thanks man for saving time.
you're the best human i saw till this date
Great video, i was having trouble installing the compiler and this video helped me
Glad it helped
ThankYou Bro I was stuck at this for 3 days finally found this wonderful tutorial you deserve a sub ❤❤
10000% true
Just started learning c++ for my autonomous mobile robotics class and I was running into problems but this helped, thank you.❤
likewise..
Thank you after like 5 videos nothing worked till I watched yours thx
Best guide that I've come across. Thank you so much!
Thank you. I was having trouble installing gcc directly from VS Code Blogs but this method solved the issue.
I have been trying to figure this thing out for 2 hours now, thanks to you i did it in 2 minutes. Thank you so much.
Thanks! this video has given the most easiest step to resolve the path compiler issue
It saved me a lot of headaches. Thanks a million.
Glad it helped!
Tnx bro!!! I've been trying for three days... your video is the only successful one
In cs50 they just went straight into teaching us code on VS code and completely skipped telling us how to set it up. I was completely dumbfounded getting so many error messages just trying to type hello, world XD
I'm going through the same thing
Yes exactly the same
Me as well
I thought the same thing but actually David mentions that they are using their cloud version
Witch you can access very easily in the page of cs50, I don’t know if any of you are taking it entirely on UA-cam but the page has a ton of information besides the lectures, like de duck AI, vs code for cs50, GitHub access for the problem sets and more información about the topics.
The reason for this was because people actually in that class were given a cloud based version, meaning they didn't have to install anything and were able to just jump in and start coding. Then much later on down the line David mentioned he would help them install it onto their computers so when the class was over they could continue working on projects even if it's the only class they take, but for everyone else, yea we have to just figure it out lmao
you literally saved me from burning my nerves THANK YOU
😂 you are welcome , dont forget to like and sub
Thanks for the guide. This is actually clearer than the docs from Microsoft!
Im glad it helped
microsoft is the very last place you go for clarity. Everything microsoft does is tainted with weirdness. The Bill Gates Vibe I guess !
u do realize this version is not 64 bit right. also u won't have to newest versions of the compilers and headers.
@@edwardmacnab354 u sound like a noob who knows nothing tbh. the Microsoft docs were fine 😂
thank you so much man! I have been struggling with this for like a day and every other video did not work, you rescued me
thanks, straight to the point without fluffs
🙌
@@thecodebeary, Everything was going perfect but after compiling (gcc file.c) .exe file was not creating...as a result, after giving command .\a.exe, code is not running
Plz help
After reinstalling it's working now...
Love this. Easy and straight to the point. My codes started running instantly 😇😇
This helped SOOOO much!!! I can finally do C/C++ and am not stuck to Java Python HTML JS CSS and Bash!!!
superb. well-paced, and not too thick of an accent.
So much easy, clear and straightforward! Many Thanks!
Hii, Farhan can you help me out to solve this error I have tried everything reinstalled MINGW but still it is showing error
@@am_dazzle sure, i'll try. what error are you facing?
I don't know what's going on brother please help me 🙏🏻
Can you tell me if I share my screen
@@am_dazzle i'm not so sure unless i see it
Can you give me your Instagram id so that I can send you a screenshot
thanks a lot for this video. its helped me alot.i was troubling with it for many days but finally i find the solution.the best video on youtube.
This got to be the funniest thing ever,i did precisely everything you did,and it was going well,all of it,and in the very end when i clicked to run the file it appeared that gcc is not reconized as a internal or external command,im always out of luck with this computing tutorials,every single video it doesnt work for me,always,but thanks anyway XD.
there you go buddy , ua-cam.com/video/8xNhnmF9ATs/v-deo.html
Every single video/tutriyal
Hahahaha
Use clang llvm
Thank you it worked🙏, It's been more than a month trying to run my codes
Excellent Kumar, straightforward, simple and easy. Thanks
ive been trying to compile my code for a week now but all the instructions i got were BS, thank you for the help!
Thank you for this video my friend.
Really cleared up a lot for me.
Im glad it helped man
What a brilliant tutorial ! . Your voice is supper clean. Keep it up bro ❤
Thank you bro !
If anyone getting error just try to add the path in System variables rather than User variables it really helped😊
MAAAAAAN THANK YOU SM IT HELPED !!!
Thank you bhaiya bohot help hua , bohot din se problem me fasa tha !!
This was very nicely done, great video!Thank you.
You're welcome
I could marry you right now, took ages to figure this out. Watched other videos and none explained it as clear as you did
Thank you very much. I was lost at first and thought “why do I need to do all these steps?” Because in my school the PCs were probably already setup. I was a bit skeptical 😅 and to be fair I’m still a bit worried if I did anything wrong but nevertheless I am able to code in VS now.
thanks code bear i ran out from a big setup problem today by watching urs tutorial
Straight to the point. Keep up the work!
OMG YOUR THE BEST THANKS VERY MUCHHHHHHHHHHHHHH!!!!!!!!!! I LOVE you TILL I DIE
Thank you soooo much. You made it sound so simple.
Thanks mate! I finally ran my first c++ program :)
Thank you so much man. It's really helpful ✌️✌️
bro earned a subscriber, i had been struggling from hours on it
Thanks. Short and to the point!
I followed Microsoft's tutorial, no success. This tutorial worked better for me.
Glad it helped
great work. You helped me so much :D
very helpfull video sir thank you a lot
Loved it, short and accurate
Thanks
thanks man, no one was actually telling the truth that we need to install mingw minimalist GNU instead mingw w64
I got no errors in the command prompt but while running the programs it is showing, 'gcc' is not recognised as an internal or external command, operable program or batch file. How to fix it?
open command promt and write gcc. is it working? if not then system path not setup. it cant find gcc.exe magically. you need tell what folder is it
i open terminal on vscode
gcc -o test.exe test.c
boom! zaam! no need any extensions. it means i can easy use notepad and console like 20 years
Thanks alot...
I was struggling alot since one week. Your video helped alot.
Thnx sir...
sorry, if when we check gcc at cmd and it says
'gcc' is not recognized as an internal or external command,
operable program or batch file.
what i have to do?
Same problem did you find the solution?
Thanks a lot because of your video I was able to install the gcc properly and run C++ code !!!
detailed and clear. super helpful.
a big thanks from all the beginners.
Yes it works but, when the program needs the user to do some input, I cannot act as an user to enter input into the window, how do I fix this?
Thanks Bro ❤😀!! It worked perfectly without any error. You saved my a lot of time.
Simple and easy to follow, thank you!
Thank you so muchh, finally a worthy video
Thanks so much for this - really concise and helpful! :)
You're welcome
thank you so much Sir . this video really very helpful for me again thank you and " Happy Teachers Day ".
Not working in Windows 11 and recent Visual Studio Code, and other plugins!
Bro pls help me
Man you're a life saver.
Thanks for your work. Really helpful 🙏🏿
Thank you! How did you make "run" as the default icon (5:22)? Mine has "debug c/c++ file" as default.
Just run it one time or press ctrl+alt+n one time
Thanks this video is really infromative with easy steps thank u from India
how do i fix this error by cmd
gcc' is not recognized as an internal or external command,
operable program or batch file.
any solution?
Very much appreciated the clear instructions. Thanks, it was very helpful!
here i have changed the environmental path but i have an error or
"'gcc' is not recognized as an internal or external command,
operable program or batch file."
Try restarting vscode
Thank You. The Explanation was precise and really helpful
Glad it was helpful!