Hmmm, that getting started page with links to documentation and learning the fundamentals about it. I don't think that's telling you that stuff at all .
Alright, the fact that you popped immediately for a C/C++ Visual Studios tutorial after you helped me with MinGW means you get my subscription. You're, sir, are fantastic.
@@eyeofthepyramid2596 I don't know if you have figured it out yet but just in case, you need to save it before you run the program. Couple of ways to do it, but the easiest way is control + s. I got the same message you did and did the save thing, works well. I hope this helps!
after wasting my whole day on just this simple setting i repteadly installed and uninstalled my vscode thinking i am doing something wrong. and then finally i watched this video. thanks a lot man.
This is a great tutorial, I was stuck on configuring VS Code for C/C++ for hours and this video was very simple and easy to follow. Thanks a lot for the simple tutorial, it really helped a lot. Everything went smooth and VS code works perfectly!
This was unbelievably easy and it worked perfectly fine! I was breaking my head for two hours until i came across your video(s). Thank you so much for these tutorials.
Thank you LearningLad for making this way quicker and easier than anything else I found! Just as a heads up in case anyone else runs into this: When I first got everything set up and tried to run the Hello World example, it threw this error: undefined reference to `WinMain' collect2.exe: error: ld returned 1 exit status All I had to do was save the file first by going File > Save and then it worked just fine.
THANK YOU SO MUCH, I WAS HAVING DIFFICULTY WITH THE INSTALLATION, AND YOU HAVE CLEARED ALL MY DOUBTS. AND NOW I'VE SUCCESFULLY CREATED MY FIRST CODE, ♥
This video saves tons of time! I had been struggling with compiling and running C in vscode for hours, and then I found this video. It's so helpful, straightforward. Thank you so much!
Really helpful sir. I saw atlest 10 tutorials but none of them worked. Your tutorial series worked for me. Life saver!! I hope this channel crosses 1M subscriber soon. Such an underrated channel.
Thank you for this great tutorial! For those who get the error "undefined reference to `WinMain' collect2.exe: error: ld returned 1 exit status" Remember to save your file with ctrl-s before running your code. You can go into extensions and into Code Runner to change the extension's settings Look for Code-runner: Save file before run and tick "Whether to save file before running"
Helped me a alot i have been trying to run a C program on vsc but there was some issue with mingw now after following your steps everything is working fine thanks alot.
Thank you so much!!! By the way, if anyone can't find the "Run code configuration" on the left side, type in "Run code" in the search bar. "Extensions" should show up, and under it will be the run code configuration option. It seems that's changed since this video was published.
Excellent videos. I followed every step that you have explained for C CPP and Python and its working. I had tried this many times but never worked. Thank you very much!
Am I the only one who is getting ' cannot open source file "iostream" ' :'-( Solution please!!! Okay got the solution: First watch the video in the description of this video!!! Thanks man it worked :'-)
@@LearningLad sir, I have installed the vs code and all what u have mentioned but aftr typing the code, when i run it nothing is being shown as output or error...please help sir
Finally I've installed it, I just started programming I just hope I'm going the right path, I'll Come back in a few months to tell how my learning is going
Excellent help for beginners. As a suggestion you could also show where you can find the executable produced and how you can run it from anywhere. Even on a computer with nothing installed. Some people have hard time seeing the difference between interpreters like Java or python which both need some runtime environment to run the program in, vs the direct machine code running directly on OS.
Hey man. Thanks alot for this video. Very much appreciated, now that I lost my job to covid I can finally catch up and learn c++ and its all thanks to your help
Thank you so much for your help. I really liked the way you explained each step! Now I can execute C program on VS code, looking forward to some more amazing content.
I just wanted to say thank you. It is very frustrating when you are trying to learn something new and no matter what you do it does not work. Especially when it is not because you messed up what you are trying to learn but because of a setting in the program or on the computer. Thanks to you I know I was doing it correctly the whole time and it was just a setting in VS Code. Thanks again.
If it's still not running for you giving you an "Access Denied" error message. Check and see if you have an antivirus program such as McAfee or Norton, and try turning it off, close Visual Studio Code and open it again and try to run the program.
Thanks a lot for your video Sir I literally had to do installing and uninstalling process 3 times until I found you're video. Finally I installed successfully. Min gw and all the extensions. Thanks a lot sir
Nobody: Python Ad: Python's where it's at... you can do almost anything with it... You know, you should take this Python cour- SKIP Me: Knows nothing about coding, but still proceeds the C++ tutorial lol
@@vvekmathew sir, I did add path to to environment variable but still getting same result. Also the files in my mingw folder are not showing .exe extension. PS. I have 32 bit windows.
4:38 but I am getting output like this... " 'gcc' is not recognized as an internal or external command, operable program or batch file." instead of hello world
For anyone having issues after enabling "Run in terminal" even if you click on "Stop code" CTRL+ALT+M -> and you keep getting the error message "Code is already running". Close you Visual Studio Code and run it again; should work.
I have been trying to install both from longer time but was not able to install and run program, both of your videos helped in installation and successfully running the program
Restart vscode because if you added it to your environmental variable while vscode was running then vscode will output that it doesn’t recognize. Just a simple vscode restart but I’m sure you figured that out by now
Hey,how to configure settings to build a task , debugging it and than creating an executable exe. File. I have been looking for it for months now.no video has helped me till date.either they are too old or are for mac .😭😭
@Furious Edits Use Explorer or command line (dir /S gcc.exe) to try and find the gcc executable. For me the installer installed it in c:\bin for whatever reason. I uninstalled, reinstalled and it worked ok second time around.
Thanks a lot sir....I was very much frustrated since yesterday because vs code just wasn't getting set up. I even watched code with Harry,Apna college tutorials for vs code set up. Now I watched all your 3 tutorials and it worked for me. Thanks a lot sir.From now onwards I will regularly check out this channel..
These errors have been with me since the day I installed Visual Code: #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (E:\Programs\C++\VISUAL\test.c). cannot open source file "iostream"
I have got error in output..it says < -gcc -no directory found > Even I add in Computer path In command prompt it says fatal error so it includes in computer but what problems during running code I don't understand plz help
When I run c program it's run perfectly but when I try to run c++ program it's showing me error " no input files compilation terminated ".... Plzz reply sir... 🙏
cd "c:\Users\Joy Purohit\OneDrive\Desktop\vs code c++ work\" ; if ($?) { g++ test.cpp -o test } ; if ($?) { .\test } mera bas yeh terminal pe aaraha hai but the code is not giving any output
Hi, Formerly i track your guide and i did it, but today i have a error: 'gcc' is not recognized as an internal or external command, operable program or batch file. I downloaded both of them. What can i do?
the fact that this video has 1 million views shows how bad vscode is at telling the user basic functionality
Absolutely!, This was super simple!
Hmmm, that getting started page with links to documentation and learning the fundamentals about it. I don't think that's telling you that stuff at all .
Clearly You are Gey👍
2.365786 million*
Right.
For people who are unable to get the output, save your code with ctrl s, and then run!
you saved me
thank you for the comment
helpful
oh my thank you so much...i.I was going crazy
Yo thank you bro same here thanks very much🤩🤩🤩🤩🤩
Alright, the fact that you popped immediately for a C/C++ Visual Studios tutorial after you helped me with MinGW means you get my subscription. You're, sir, are fantastic.
Man you're a life changer. You made everything 10 times easier than it was shown in VSC's C++ installation guide.
glad that my video helped you :)
@@LearningLad it shows me error: ld returned 1 exit status
@@eyeofthepyramid2596 I don't know if you have figured it out yet but just in case, you need to save it before you run the program. Couple of ways to do it, but the easiest way is control + s. I got the same message you did and did the save thing, works well. I hope this helps!
@@LearningLad th cc++ extension is not working ,please help
Sir where u live in India?
after wasting my whole day on just this simple setting i repteadly installed and uninstalled my vscode thinking i am doing something wrong. and then finally i watched this video. thanks a lot man.
pleasure :)
This is a great tutorial, I was stuck on configuring VS Code for C/C++ for hours and this video was very simple and easy to follow. Thanks a lot for the simple tutorial, it really helped a lot. Everything went smooth and VS code works perfectly!
Code runner doesn't work for my version, I'm just using another method instead. Even notepad is easier.
This was unbelievably easy and it worked perfectly fine! I was breaking my head for two hours until i came across your video(s). Thank you so much for these tutorials.
You're welcome!
shia
you're a life saver it was driving me crazy (didn't know how to run the code so it accepts input)
Literally, I had tried everything, and nothing worked except this. You saved my mental health. Thanks a lot
Glad my video helped you out. :)
i thought i was the only one who was stressing about this so much
Thank you LearningLad for making this way quicker and easier than anything else I found!
Just as a heads up in case anyone else runs into this: When I first got everything set up and tried to run the Hello World example, it threw this error: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
All I had to do was save the file first by going File > Save and then it worked just fine.
most welcome :)
Actually, it will be easier if you activate autosave
Thank you, that saved me from like 15 min of googling probably :)
Thanku so much
Thank you so much I thought I did something wrong was gonna watch all the vids back lol
Man I would have never gotten this without you! Professor didn't want to teach us how to setup VS Code. THANKS!
glad my video helped you :)
I was wandering with this problem for a day now, but finally got it . Thanks to you!
Glad my video helped you
Dude fucken finally I missed a whole class trying to follow someone else and with you it was smooth as butter, thanks man
Pleasure
nws
Don't curse.
@@kshau_ I don't think the internet is the place for you then mate.
@@blubbermammoth8426 Shut up.
THANK YOU SO MUCH, I WAS HAVING DIFFICULTY WITH THE INSTALLATION, AND YOU HAVE CLEARED ALL MY DOUBTS. AND NOW I'VE SUCCESFULLY CREATED MY FIRST CODE, ♥
Awesome
Keep learning
This video saves tons of time! I had been struggling with compiling and running C in vscode for hours, and then I found this video. It's so helpful, straightforward. Thank you so much!
Most welcome
Thank you!!! I'm just starting to code in c++ and my professor couldn't explain it as easily as you just did!!
You're very welcome!
Thanks bhai tune to jindgi hi badal di.😂 pareshan ho gaya tha in online compilers se. Very very very thanks 🙏🙏🙏
glad this tutorial helped you :)
This was the only video explaining about the " *Run in terminal* " setting. I was stuck in there.... Thank you so much
You're welcome!
Really helpful sir. I saw atlest 10 tutorials but none of them worked. Your tutorial series worked for me. Life saver!! I hope this channel crosses 1M subscriber soon. Such an underrated channel.
Glad it helped
Thank you for this great tutorial!
For those who get the error
"undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status"
Remember to save your file with ctrl-s before running your code. You can go into extensions and into Code Runner to change the extension's settings
Look for Code-runner: Save file before run and tick "Whether to save file before running"
thanks a lot!!
Helped me a alot i have been trying to run a C program on vsc but there was some issue with mingw now after following your steps everything is working fine thanks alot.
You're welcome!
Thank you so much!!!
By the way, if anyone can't find the "Run code configuration" on the left side, type in "Run code" in the search bar. "Extensions" should show up, and under it will be the run code configuration option. It seems that's changed since this video was published.
Thank you for posting this :)
I don't get anything popping up when I type "Run code" in the search bar, it doesn't reveal The Run code configuration option under "Extensions"
THANK YOU! Can't tell you how much I have searched for the input issue.
Glad I could help!
@@LearningLad I am still gettotn error😭
i have watched tons of videos about my error none of these videos helped and you fixed perfectly thank you soo much
pleasure :)
I HAVE BEEN SEARCHING SO MUCH TIME FOR THIS. THANK YOU MAN, YOURE AWESOME
No problem!
Crystal Clear. Thank you Sir!
You're welcome!
thank you so much learning lad!! i was so lost in the installation guide of c++ from VS code
You are welcome!
thank you so much for the Run in Terminal, i don't even know that earlier!!!
Welcome!
This last part, run in the terminal, is just which I was looking for. Thank you so much.
You are welcome!
sir ,i was so tensed that my vs code stoped working for hours but after I watched your video I am able to work again .Thanks a zillion sir.
Pleasure
Thank you so much for this video!!
Was having a hard time finding out how to put inputs into my code and you saved me :)
You are welcome!
Excellent videos. I followed every step that you have explained for C CPP and Python and its working. I had tried this many times but never worked. Thank you very much!
my pleasure :)
C++ installation and now this...made my day..thanx..That read only output tab drove me crazy...
Glad it helped
Am I the only one who is getting ' cannot open source file "iostream" ' :'-(
Solution please!!!
Okay got the solution: First watch the video in the description of this video!!!
Thanks man it worked :'-)
"Iostream " such file not found but I already download extension plz help if you already solve it
@@amolmagar6468 Yeah delete all the downloads you did and do all the steps in the video again that might work 👍
@@justbeagoodperson4826 I have resolved it. I was not given. Cpp extension for c++ file and also gpp instead of gcc.
This was SO helpful thank you so much!!
I spent like 5 hours not realizing I needed a code runner extension 🤦🏽
Pleasure
gubad
gubad
@@LearningLad sir, I have installed the vs code and all what u have mentioned but aftr typing the code, when i run it nothing is being shown as output or error...please help sir
Finally I've installed it, I just started programming I just hope I'm going the right path, I'll Come back in a few months to tell how my learning is going
All the best :)
man, you really saved my life. I'd been trying to run my code for hours before I saw this video. Thanks :)
Thank you so much for this!
In comparison to your video, other installation guides are just useless.
Great work 💯
You're welcome!
After watching so many useless guides I finally found this video! Thank you so much it's all working and functioning now!
You're welcome!
this was great. fast and painless. Thank you so much!
You're welcome!
Excellent help for beginners. As a suggestion you could also show where you can find the executable produced and how you can run it from anywhere. Even on a computer with nothing installed. Some people have hard time seeing the difference between interpreters like Java or python which both need some runtime environment to run the program in, vs the direct machine code running directly on OS.
Could you eelaborate this further,like how to run any code in any machine?
Thanks in advance 😃
09.08.2022 7:17 pm ist
Sir, Thanks a lot. I had been unable to run my C++ programs on VS code, I called it quit, saw your video and am back on VS code. Thanks.
Glad it helped
Hey man. Thanks alot for this video. Very much appreciated, now that I lost my job to covid I can finally catch up and learn c++ and its all thanks to your help
Glad it helped!
Thank you so much for your help. I really liked the way you explained each step! Now I can execute C program on VS code, looking forward to some more amazing content.
Glad this video helped you.
Will make more content :)
I had to start coding in c and c++ and this video of yours helped me a lot. thank you so much
Pleasure
This is exactly what I was looking for! Thank you for the exhaustive explanation!
Glad it was helpful!
You have been a great help. Very clear instructions and easy to follow. Thank you so much ! I can finally start practicing C 😁
I just wanted to say thank you. It is very frustrating when you are trying to learn something new and no matter what you do it does not work. Especially when it is not because you messed up what you are trying to learn but because of a setting in the program or on the computer. Thanks to you I know I was doing it correctly the whole time and it was just a setting in VS Code. Thanks again.
You are so welcome!
Thnks finally I can do c++!!
Awesome
Keep learning :)
Before I wanted to try c++ in visual studio code but I was using their tutorial and I was really confused but you made it easily understandable
glad it helped :)
@@LearningLad hey bro why does it say in my terminal that File format not recognized
collect2.exe: error: ld returned 1 exit status? Im confused
Thank you so much I was searching on how to use the input scanf and your tutorials really helped me, thank you very much
You're welcome!
Your video was simple and easy to follow. I am saving this in a playlist for later!
Thank you
Keep learning
My god
Awesome bro
🔥🔥🔥🔥
Today my day was fully wasted in this but now 🎉🎉🎉🎉
Glad to hear that
relief! watched so many videos to start up C programming. this video helped so simple and precise explanation
Glad it helped!
This is called perfection..
thank you :)
Fantastic. Simple and easy to follow Language & to the point (no nonsense talkings to kill time) content. Thanks.
Pleasure
FInally a video that worked for me, I'm starting with C++ and now I can run code, thank you !
You're welcome!
Thank you so much for this 😊😊
Pleasure
It's amazing sir, nice explanation.
And it's helped me alot. Thank you so much.
my pleasure :)
Hello sir
The output isn't coming. Every time I need to press ctrl+s. Please tell me anything to avoid this thanks
Best tutorial out there, was trying to figure this out elsewhere for too long.
Thank you :)
Thanks to you I got it! Absolutely fantastic tutorials! Hope you do some stuff in C so we can all learn from you.
Thanks, will do!
If it's still not running for you giving you an "Access Denied" error message. Check and see if you have an antivirus program such as McAfee or Norton, and try turning it off, close Visual Studio Code and open it again and try to run the program.
Thanks a ton
Thanks a lot for your video Sir I literally had to do installing and uninstalling process 3 times until I found you're video. Finally I installed successfully. Min gw and all the extensions. Thanks a lot sir
You are welcome
You are a freaking legend brother. Thanks a lot for this video.💙
My pleasure 😊
DAAAMN, THANK YOUU BERY MUCH!
my pleasure :)
It's amazing...... it is the only video on RUclips which solves all the problems for the beginner
Very good video. Simple and straight to the point. Thank you, man.
most welcome :)
Nobody:
Python Ad: Python's where it's at... you can do almost anything with it... You know, you should take this Python cour- SKIP
Me: Knows nothing about coding, but still proceeds the C++ tutorial lol
Me too 😂
Don't know how to thank you for this video i was struggling to use VS code ❤..
Thank you and keep educating more people
You're welcome 😊
"'gcc' is not recognized as an internal or external command," this is the output i got even though i installed mingw. what should i do?
Add path. Then restart your computer and try again
@@vvekmathew How do I know the path where gcc is installed
@@renjithroy8422 Yeah thanks. I figured it out. This video assumes that people have already installed MinGW. Should have been clarified.
@@rasu84 Great. He had made another video where he explains on how to install MinGW, that's how I figured it out.
@@vvekmathew sir, I did add path to to environment variable but still getting same result. Also the files in my mingw folder are not showing .exe extension. PS. I have 32 bit windows.
4:38 but I am getting output like this...
" 'gcc' is not recognized as an internal or external command,
operable program or batch file."
instead of hello world
he did not tell how to install compiler to run code
I got same thing
same here
You need to install MinGW
I was struggling to configure C/C++ with VS code for hours. thank you for making it so easy! :)
welcome :)
I got an error saying "The system cannot execute the specified program.". What's do I do?
For anyone having issues after enabling "Run in terminal" even if you click on "Stop code" CTRL+ALT+M -> and you keep getting the error message "Code is already running".
Close you Visual Studio Code and run it again; should work.
Thank you for Posting :)
Thank you so much sir 🙏.
I have seen a lot of videos but no one ever explained the specific topic that I was looking for.
Most welcome :)
While running the code it is saying gcc is not recognized as an internal or external command,
Plz help
yes I am having the same issue !
@@anirudhsharma3168 link MinGW
@@Memer2022 how?
@@antonel_rch watch his video where he installs MinGW. Follow the procedure and then restart VS Code application.
Try adding the g++ and gcc path to your environment variables
This really helps me lot. and the way you elaborate the thing in this simple manner is quite impressive . Thank you for this video man ❤❤❤❤❤❤
You're very welcome!
Thankyou very much . I was getting lots of trouble from past 2 days. Due to your video my 😊 problem is solved within an 5 minutes.
Most welcome 😊
I am getting the error that says no such file or directory. How do I install stdio.h, please tell.
I had the same error, but it was because I had spelled it studio.h not stdio.h
While creating file name don't leave space.
After typing without space, it run the output for me.
ctrl + s
try using return 1; instead of return0;
@@shalini6930 Thank you
"Hello World"
Say the guy that will make beautiful games one day
"Hello World, are you ready for awesome?"
I have been trying to install both from longer time but was not able to install and run program, both of your videos helped in installation and successfully running the program
glad my video's helped you :)
Brother it shows ""gcc" is not recognized as an internal or external command"
Restart vscode because if you added it to your environmental variable while vscode was running then vscode will output that it doesn’t recognize. Just a simple vscode restart but I’m sure you figured that out by now
This was amazing. Thank you so much for this video. It really helped me a lot.
my pleasure :)
Started my life in learning c and c++ with your heartful of hands❤🙂
all the best :)
@@LearningLadThank you ✌🏻️❤
Hey,how to configure settings to build a task , debugging it and than creating an executable exe. File. I have been looking for it for months now.no video has helped me till date.either they are too old or are for mac .😭😭
I had a problem where the terminal said it "couln't find gcc" or something along those lines. I fixed it by running VSC as administrator.
@Furious Edits Use Explorer or command line (dir /S gcc.exe) to try and find the gcc executable. For me the installer installed it in c:\bin for whatever reason. I uninstalled, reinstalled and it worked ok second time around.
Thanks a lot sir....I was very much frustrated since yesterday because vs code just wasn't getting set up. I even watched code with Harry,Apna college tutorials for vs code set up.
Now I watched all your 3 tutorials and it worked for me. Thanks a lot sir.From now onwards I will regularly check out this channel..
Thank you
Keep learning
In this program #include error detected.and show update your include path.and can't open source file "stdio.h" display why can you explain me
did you find out?
You still need solution?
@@kalaigaming6902 yes i need
Try to disable your antivirus or make your antivirus allow it.
I'm also getting this error please help 🙏
These errors have been with me since the day I installed Visual Code:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (E:\Programs\C++\VISUAL\test.c).
cannot open source file "iostream"
I have the exact same problem i hope there is a fix for it
@@sshadyzerapper7318 there is a fix, you have to include the path of your mingw compiler path in the configuration
@@rajivkumarkale what does that mean, care to explain ?
bhai mai kuch nhi samajh pa rha tha aapne itna ache se explain krke setup krwaya hai kia b bhulna mushkil hai hats off dude amazing 🙂
'gcc' is not recognized as an internal or external command,
operable program or batch file.
Same problem. Did you solve it?
@@marrrinus no
@@prog-255 I solved it. 1. Installed WSL on Windows 10, installed gcc in Ubuntu Terminal. 2. I changed the Remote Window in VS Code to WSL
I have got error in output..it says
< -gcc
-no directory found >
Even I add in Computer path
In command prompt it says fatal error so it includes in computer but what problems during running code I don't understand plz help
even i stuck there
A huge thanks to you. You just saved me from breaking my computer.
subscribed
Welcome!
When I run c program it's run perfectly but when I try to run c++ program it's showing me error " no input files compilation terminated ".... Plzz reply sir... 🙏
Hey @pathan have you included using namespace std; ?
use .cpp extension
Same problem bro
When i try to run my code i get the following error: gcc.exe: error: no such file or directory (but im already in the folder that is my program)
If the file name contains space then write the file name between double quotes
@@LearningLad thank you very much
If file or folder name contains spaces then remove them
been struggling with this issue for a week , resolved quickly , thank you!
most welcome :)
cd "c:\Users\Joy Purohit\OneDrive\Desktop\vs code c++ work\" ; if ($?) { g++ test.cpp -o test } ; if ($?)
{ .\test } mera bas yeh terminal pe aaraha hai but the code is not giving any output
Hi, Formerly i track your guide and i did it, but today i have a error: 'gcc' is not recognized as an internal or external command,
operable program or batch file. I downloaded both of them. What can i do?
Same error.
Please tell if you get some solution
check the path environment variable.
if you have set it in the user variables section then try setting it in system variables section
@@LearningLad sir but kaha se karna hai isko
When I run the program it is showing
"gcc is not recognized"
Please tell how to resolve this issue
if gcc is installed then make sure that you have properly set the path environment variable
gcc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file
Make sure that you have set the path environment variable properly :)
@@LearningLad wdym by that.
After installing c compiler you need to add its installation location to the path environment variable