How to Set up Visual Studio Code for C and C++ Programming

  Рет қаралды 3,894,852

LearningLad

LearningLad

Күн бұрын

In this video you will learn How to Set up Visual Studio Code for Creating and Executing C and C++ Programs.
Visual Studio Code is the widely used editor in Computer Programming field.
It is the best editor for a beginner in programming because it is simple, easy to set up and has all those features needed.
First you need to Download and Install C C++ toolset ( Compiler , linker etc ) like mingw. After that you need to install Visual Studio Code. After that you need to install a couple of extensions to run C and Cpp Programs.
Download and Install Mingw
• How to Download and In...
Download and Install Visual Studio Code
• How to Download and In...
Setup Visual Studio code for Python Programming
• How to Set up Visual ...
Visit www.LearningLad.com for more free computer programming video tutorials.
Other pages of LearningLad
/ learninglad
/ learningladofficial
/ learningladedu

Пікірлер: 3 400
@EduardoMengesMattje
@EduardoMengesMattje 2 жыл бұрын
the fact that this video has 1 million views shows how bad vscode is at telling the user basic functionality
@shivakumar-lv6wr
@shivakumar-lv6wr 2 жыл бұрын
Absolutely!, This was super simple!
@Player-fx3vt
@Player-fx3vt 2 жыл бұрын
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 .
@ytg6663
@ytg6663 2 жыл бұрын
Clearly You are Gey👍
@chairmanmao112
@chairmanmao112 2 жыл бұрын
2.365786 million*
@nomankhan7190
@nomankhan7190 2 жыл бұрын
Right.
@divyanshsati1116
@divyanshsati1116 4 жыл бұрын
For people who are unable to get the output, save your code with ctrl s, and then run!
@rafaelfernandez725
@rafaelfernandez725 4 жыл бұрын
you saved me
@LearningLad
@LearningLad 4 жыл бұрын
thank you for the comment
@user-bb6si1et1k
@user-bb6si1et1k 4 жыл бұрын
helpful
@ROSSB177
@ROSSB177 4 жыл бұрын
oh my thank you so much...i.I was going crazy
@siddharth9703
@siddharth9703 4 жыл бұрын
Yo thank you bro same here thanks very much🤩🤩🤩🤩🤩
@pratikanand5161
@pratikanand5161 2 жыл бұрын
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!
@1mol831
@1mol831 Жыл бұрын
Code runner doesn't work for my version, I'm just using another method instead. Even notepad is easier.
@midnari
@midnari 2 жыл бұрын
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.
@Alex-co4hx
@Alex-co4hx 4 жыл бұрын
Man you're a life changer. You made everything 10 times easier than it was shown in VSC's C++ installation guide.
@LearningLad
@LearningLad 4 жыл бұрын
glad that my video helped you :)
@eyeofthepyramid2596
@eyeofthepyramid2596 4 жыл бұрын
@@LearningLad it shows me error: ld returned 1 exit status
@williammatiz9745
@williammatiz9745 3 жыл бұрын
@@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!
@ArshdeepSingh-ix3bg
@ArshdeepSingh-ix3bg 3 жыл бұрын
@@LearningLad th cc++ extension is not working ,please help
@Alpha-uw6wn
@Alpha-uw6wn 3 жыл бұрын
Sir where u live in India?
@zainabsyeda5644
@zainabsyeda5644 3 жыл бұрын
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.
@LearningLad
@LearningLad 3 жыл бұрын
You're welcome!
@aqtedarkazim9678
@aqtedarkazim9678 Жыл бұрын
shia
@luisespinoza3562
@luisespinoza3562 2 жыл бұрын
Thank you!!! I'm just starting to code in c++ and my professor couldn't explain it as easily as you just did!!
@LearningLad
@LearningLad 2 жыл бұрын
You're very welcome!
@puregold3935
@puregold3935 2 жыл бұрын
You have been a great help. Very clear instructions and easy to follow. Thank you so much ! I can finally start practicing C 😁
@Scottylili
@Scottylili 3 жыл бұрын
you're a life saver it was driving me crazy (didn't know how to run the code so it accepts input)
@harsh-ox9gy
@harsh-ox9gy 4 жыл бұрын
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 .😭😭
@shai.mp4
@shai.mp4 2 жыл бұрын
@ 4:15 when you typed test.c , vscode did identify as a c program but mine isnt doing so. mine does identify .cc that is C++ but the isn't identifying .c file. help please.
@Nuggz_TV
@Nuggz_TV 2 жыл бұрын
Dude fucken finally I missed a whole class trying to follow someone else and with you it was smooth as butter, thanks man
@LearningLad
@LearningLad 2 жыл бұрын
Pleasure
@wotizit
@wotizit 2 жыл бұрын
nws
@kshau_
@kshau_ 2 жыл бұрын
Don't curse.
@blubbermammoth8426
@blubbermammoth8426 2 жыл бұрын
@@kshau_ I don't think the internet is the place for you then mate.
@kshau_
@kshau_ 2 жыл бұрын
@@blubbermammoth8426 Shut up.
@ShahidKhan-uf8hd
@ShahidKhan-uf8hd 4 жыл бұрын
I got an error saying "The system cannot execute the specified program.". What's do I do?
@user-jp8iu3je5z
@user-jp8iu3je5z 3 жыл бұрын
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 :)
@LearningLad
@LearningLad 3 жыл бұрын
You are welcome!
@chiragthakur1692
@chiragthakur1692 2 жыл бұрын
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, ♥
@LearningLad
@LearningLad 2 жыл бұрын
Awesome Keep learning
@kimvo4929
@kimvo4929 6 ай бұрын
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!
@LearningLad
@LearningLad 6 ай бұрын
Most welcome
@sudhirpadhye7093
@sudhirpadhye7093 3 жыл бұрын
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!
@LearningLad
@LearningLad 3 жыл бұрын
my pleasure :)
@victorstone3720
@victorstone3720 3 жыл бұрын
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.
@LearningLad
@LearningLad 3 жыл бұрын
Glad this video helped you. Will make more content :)
@LoloSandag
@LoloSandag Жыл бұрын
Hi, I'm having an issue if you could help I keep getting the message: intellisense mode windows-msvc-x64 is incompatible with compiler path any idea what i can do?
@learnvocab1841
@learnvocab1841 2 жыл бұрын
hello @LearningLad , i got some problem in my VSCode [Running] cd "c:\Users\pc\C\" && gcc test.c -o test && "c:\Users\pc\C\"test 'gcc' is not recognized as an internal or external command, operable program or batch file. [Done] exited with code=1 in 0.026 seconds
@abhishekchaudhary6975
@abhishekchaudhary6975 3 жыл бұрын
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.
@LearningLad
@LearningLad 3 жыл бұрын
Glad it helped
@Martinko_Pcik
@Martinko_Pcik 3 жыл бұрын
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.
@azhagurajaallinall126
@azhagurajaallinall126 Жыл бұрын
Could you eelaborate this further,like how to run any code in any machine? Thanks in advance 😃 09.08.2022 7:17 pm ist
@torrescle
@torrescle 2 жыл бұрын
That run in terminal doesn't work here, I got this error: bash: cd: c:\Users odri\ProjectsCpp\Estudo" && g++ main.cpp -o main && c:UsersrodriProjectsCppEstudo"main: No such file or directory
@lukavranjes6260
@lukavranjes6260 Жыл бұрын
Do you know maybe when i try and debug it says launch.json file is missing. Ive tried dozens of things ive found on google/yt none of them had worked. any ideas maybe?
@FazriGading
@FazriGading 3 жыл бұрын
thank you so much for the Run in Terminal, i don't even know that earlier!!!
@LearningLad
@LearningLad 3 жыл бұрын
Welcome!
@sakshamchaturvedi
@sakshamchaturvedi 3 жыл бұрын
Thank you so much for this! In comparison to your video, other installation guides are just useless. Great work 💯
@LearningLad
@LearningLad 3 жыл бұрын
You're welcome!
@mastermind328
@mastermind328 2 жыл бұрын
Hello, what terminal was used in the video and the settings for terminal vscode because the text in my terminal is just plain white
@Quiselott
@Quiselott Жыл бұрын
Man I would have never gotten this without you! Professor didn't want to teach us how to setup VS Code. THANKS!
@LearningLad
@LearningLad Жыл бұрын
glad my video helped you :)
@srilalitabhuvaneswarid
@srilalitabhuvaneswarid 2 жыл бұрын
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
@GiveBackGlory
@GiveBackGlory Жыл бұрын
he did not tell how to install compiler to run code
@prog-255
@prog-255 Жыл бұрын
I got same thing
@ishu4370
@ishu4370 Ай бұрын
same here
@susmoypaul5140
@susmoypaul5140 4 жыл бұрын
Thanks for ur help man. But is there any way to auto refresh the terminal when we run a new code?
@orxqmo
@orxqmo Жыл бұрын
I'm getting this error when running the code x86_64-pc-cygwin/bin/ld:test: file format not recognized; treating as linker script how can I fix this?
@marjoriejohnson9421
@marjoriejohnson9421 3 жыл бұрын
this was great. fast and painless. Thank you so much!
@LearningLad
@LearningLad 3 жыл бұрын
You're welcome!
@lanatrzczka
@lanatrzczka 3 жыл бұрын
Thanks to you I got it! Absolutely fantastic tutorials! Hope you do some stuff in C so we can all learn from you.
@LearningLad
@LearningLad 3 жыл бұрын
Thanks, will do!
@-_.enigma._-
@-_.enigma._- 2 жыл бұрын
Hey man I saw your video and did everything the same way but it keeps saying "Linker command failed with exit code 1 (use -v to see invocation)" when I run the code. Do you have a way to fix this cause i have to keep going to the terminal and make a new file to run the code rn
@reymilocuevas3485
@reymilocuevas3485 3 жыл бұрын
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
@LearningLad
@LearningLad 3 жыл бұрын
Glad it helped!
@hirdyanshbhalla8037
@hirdyanshbhalla8037 4 жыл бұрын
Sir can we have a different console window on run like we have in codeblocks.? That will be more convenient.
@ritwikasasmal2580
@ritwikasasmal2580 Жыл бұрын
I was struggling to configure C/C++ with VS code for hours. thank you for making it so easy! :)
@LearningLad
@LearningLad Жыл бұрын
welcome :)
@user-jb2ht1gr5y
@user-jb2ht1gr5y 3 жыл бұрын
wow ,oh my. I have searched "many many" videos and articles to find this problem until I meet this! It's a very cool video just take 7mins. Thanks, that's very helpful .
@LearningLad
@LearningLad 2 жыл бұрын
Pleasure
@videofilles5302
@videofilles5302 4 жыл бұрын
hey i followed ur tutorial and when i compiled a simple code, avast blocked this: Win32:TrojanX-gen [Trj] which is apparently a very bad virus, is it possible in anyway that minGW was filled with bad things or something ? (also thanks for the very clear tutorial on this :) )
@LearningLad
@LearningLad 4 жыл бұрын
sorry for late reply. if u have installed Mingw from Official Source then no need to worry about malware
@HK-sw3vi
@HK-sw3vi 3 жыл бұрын
compare the download hash to see if the download is legit
@alvarozs6538
@alvarozs6538 3 жыл бұрын
This last part, run in the terminal, is just which I was looking for. Thank you so much.
@LearningLad
@LearningLad 3 жыл бұрын
You are welcome!
@emmanuelvijayan3944
@emmanuelvijayan3944 8 ай бұрын
I have a doubt, do we need to download the compiler for C program?? Cuz my code is not working and showing error on header file.
@user-nm4vn9tq5o
@user-nm4vn9tq5o 2 жыл бұрын
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..
@LearningLad
@LearningLad 2 жыл бұрын
Thank you Keep learning
@Dima-rj7bv
@Dima-rj7bv 3 жыл бұрын
This is exactly what I was looking for! Thank you for the exhaustive explanation!
@LearningLad
@LearningLad 3 жыл бұрын
Glad it was helpful!
@shivakumar-lv6wr
@shivakumar-lv6wr 2 жыл бұрын
Your video was simple and easy to follow. I am saving this in a playlist for later!
@LearningLad
@LearningLad 2 жыл бұрын
Thank you Keep learning
@max-birn9361
@max-birn9361 2 жыл бұрын
What should i do if it says 'gcc' is not recognized as an internal or external command, operable program or batch file.
@ashishsutar1028
@ashishsutar1028 2 жыл бұрын
Thanks Man, Even after a year this video is helping a lot of people! Great Work, Keep up with it 🔥🔥
@ayushityagi7775
@ayushityagi7775 3 жыл бұрын
When I try to run the code, I'm getting an error saying Connection to server got closed. Server will not be restarted.
@luccagazottovettori5600
@luccagazottovettori5600 3 жыл бұрын
man, you really saved my life. I'd been trying to run my code for hours before I saw this video. Thanks :)
@nandiniraman8484
@nandiniraman8484 3 жыл бұрын
when i try to run msys2 in my system windows defender shows warning message is it safe to install this package
@nimidhagupta467
@nimidhagupta467 Жыл бұрын
mingw64 ->bin . in bin folder the folder is empty . what should i do now??
@arjunseal2417
@arjunseal2417 3 жыл бұрын
"'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?
@vvekmathew
@vvekmathew 3 жыл бұрын
Add path. Then restart your computer and try again
@rasu84
@rasu84 3 жыл бұрын
@@vvekmathew How do I know the path where gcc is installed
@rasu84
@rasu84 3 жыл бұрын
@@renjithroy8422 Yeah thanks. I figured it out. This video assumes that people have already installed MinGW. Should have been clarified.
@renjithroy8422
@renjithroy8422 3 жыл бұрын
@@rasu84 Great. He had made another video where he explains on how to install MinGW, that's how I figured it out.
@shouryamkumar6158
@shouryamkumar6158 3 жыл бұрын
@@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.
@pradyumnapatil5190
@pradyumnapatil5190 3 жыл бұрын
THANK YOU! Can't tell you how much I have searched for the input issue.
@LearningLad
@LearningLad 3 жыл бұрын
Glad I could help!
@pranjaladhav9600
@pranjaladhav9600 3 жыл бұрын
@@LearningLad I am still gettotn error😭
@SamHocking
@SamHocking 2 жыл бұрын
I followed this exactly but the include paths don't work. I click the yellow lightbulb by the red squiggles to set the include path and it's set to ${workspaceFolder}/** but what should it be? In the video you don't cover this, it just seems to work after installing C/C++ extension?
@amazingvideos8224
@amazingvideos8224 2 жыл бұрын
can you help me plz.....in vs studio,still showing [Running] cd "c:\Users\Unique Computer\Desktop\c c++\" && gcc testC.c -o testC && "c:\Users\Unique Computer\Desktop\c c++\"testC 'gcc' is not recognized as an internal or external command, operable program or batch file.
@amazingvideos8224
@amazingvideos8224 2 жыл бұрын
plz help me
@julianlutz4254
@julianlutz4254 2 жыл бұрын
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.
@LearningLad
@LearningLad 2 жыл бұрын
most welcome :)
@Oskar-zt9dc
@Oskar-zt9dc 2 жыл бұрын
Actually, it will be easier if you activate autosave
@LoradLP
@LoradLP 2 жыл бұрын
Thank you, that saved me from like 15 min of googling probably :)
@daisy6672
@daisy6672 10 ай бұрын
Thanku so much
@synth-_-5093
@synth-_-5093 4 ай бұрын
Thank you so much I thought I did something wrong was gonna watch all the vids back lol
@nikhilnautiyal4146
@nikhilnautiyal4146 3 жыл бұрын
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"
@sshadyzerapper7318
@sshadyzerapper7318 3 жыл бұрын
I have the exact same problem i hope there is a fix for it
@rajivkumarkale
@rajivkumarkale 3 жыл бұрын
@@sshadyzerapper7318 there is a fix, you have to include the path of your mingw compiler path in the configuration
@soumyadeeproy7605
@soumyadeeproy7605 3 жыл бұрын
@@rajivkumarkale what does that mean, care to explain ?
@buzzmattn6539
@buzzmattn6539 2 жыл бұрын
Got this error on Mac M1: Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) any ideas?
@LearningLad
@LearningLad 2 жыл бұрын
Try after saving the program
@poeedrmexx.9325
@poeedrmexx.9325 Жыл бұрын
I have a problem, i do anything and at the end when i run a program there is no "Enter age or Age is" in terminal, but if i type like 20, it will just type "20", and there is 1 error "undefined reference to "WinMain" collect2.exe: error: ld returned 1 exit status
@LearningLad
@LearningLad Жыл бұрын
save your program before running :)
@Mohitgamming7777
@Mohitgamming7777 3 жыл бұрын
Thanks bhai tune to jindgi hi badal di.😂 pareshan ho gaya tha in online compilers se. Very very very thanks 🙏🙏🙏
@LearningLad
@LearningLad 3 жыл бұрын
glad this tutorial helped you :)
@rockonthehill1618
@rockonthehill1618 4 жыл бұрын
I HAVE BEEN SEARCHING SO MUCH TIME FOR THIS. THANK YOU MAN, YOURE AWESOME
@LearningLad
@LearningLad 4 жыл бұрын
No problem!
@sudhansumtripathy
@sudhansumtripathy 2 жыл бұрын
How to get the automatic preprocessor directive and basic template when we writec++,just like codeblocks. Why it does not save. Cpp file automatically
@dhruvinthakkar1872
@dhruvinthakkar1872 2 жыл бұрын
Yesss! I have finally done it🤘. Thanks you so so so so much... I am trying to do this setup from last 6 days and i constantly failed while doing this. i have seen many videos on this topic but they all were not working for me. But today suddenly i found your video on c/c++ setup and i thought "ok let's try another video " but ... Now i think clicking on your video was a great decision. I have seen your both videos : gcc and vs code setup. I am finally so happy that it worked, thank you so so much.
@LearningLad
@LearningLad 2 жыл бұрын
Pleasure
@bhavyabhagwani5407
@bhavyabhagwani5407 3 жыл бұрын
Hey thank you for making it so easy, I was getting crazy using it! Also which one is better and easy and fast VS Code or Codeblocks?
@LearningLad
@LearningLad 3 жыл бұрын
both are good :)
@neidagarza8345
@neidagarza8345 2 жыл бұрын
This was SO helpful thank you so much!! I spent like 5 hours not realizing I needed a code runner extension 🤦🏽‍
@LearningLad
@LearningLad 2 жыл бұрын
Pleasure
@rajakumarhinchageri5327
@rajakumarhinchageri5327 2 жыл бұрын
gubad
@rajakumarhinchageri5327
@rajakumarhinchageri5327 2 жыл бұрын
gubad
@kausthub0454
@kausthub0454 2 жыл бұрын
@@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
@pedroalmeida8453
@pedroalmeida8453 Жыл бұрын
nothing shows up on my output. why? i have MinGW installed properly, as well as Code Runner and the other extension you showed. i've been with this problem for a few hours now, i just cant get over it. it does show the outcome of the code in the Terminal, but not in the Output. doesnt make any sense
@hassanlabyad4082
@hassanlabyad4082 Жыл бұрын
go to edit the system enviroment variables in your windows pc, you will need to hit the enviroment variable and add the mingw bin path in your system variables path, if confused ask for more details
@Camerawoman_in_Action
@Camerawoman_in_Action Жыл бұрын
I'm encountering with code 1 in my terminal again and again. Despite choosing the run terminal check box from settings. So can you please help as why this is happening?
@lilmonkianime8084
@lilmonkianime8084 3 жыл бұрын
DAAAMN, THANK YOUU BERY MUCH!
@LearningLad
@LearningLad 3 жыл бұрын
my pleasure :)
@rwakade3091
@rwakade3091 3 жыл бұрын
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
@VANTABL4CK
@VANTABL4CK 3 жыл бұрын
did you find out?
@kalaigaming6902
@kalaigaming6902 3 жыл бұрын
You still need solution?
@sajidabanu3020
@sajidabanu3020 3 жыл бұрын
@@kalaigaming6902 yes i need
@raigorstonehoof6477
@raigorstonehoof6477 3 жыл бұрын
Try to disable your antivirus or make your antivirus allow it.
@Piyush13
@Piyush13 3 жыл бұрын
I'm also getting this error please help 🙏
@utkarshaggarwal1110
@utkarshaggarwal1110 2 жыл бұрын
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.
@LearningLad
@LearningLad 2 жыл бұрын
pleasure :)
@keith18793
@keith18793 Жыл бұрын
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.
@LearningLad
@LearningLad Жыл бұрын
You are so welcome!
@medux4113
@medux4113 3 жыл бұрын
i am getting this "g++: fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory compilation terminated." any fix??
@LearningLad
@LearningLad 3 жыл бұрын
can you post more info about the error. try reinstalling the compiler
@medux4113
@medux4113 3 жыл бұрын
@@LearningLad like removing the path and Deleting the c++ compiler??
@zainabsyeda5644
@zainabsyeda5644 3 жыл бұрын
I actually had the same error but that was when i downloaded MinGW from a different website, i uninstalled it as well as Visual Studio Code, and then followed the videos on this channel to install everything all over again. It works perfectly now!
@BHANUPRATAP-wo7ch
@BHANUPRATAP-wo7ch 3 жыл бұрын
I was unable the input in c++. After seeing this video I am able to take input in c++ Thanks you sir
@LearningLad
@LearningLad 3 жыл бұрын
Awesome Keep learning :)
@ITEngines
@ITEngines Жыл бұрын
is there a way to edit the terminal and set it as default everytime your run the code? for example, I would like to add something inside the {gcc } and have it be there everytime I run my code.
@dodiezero
@dodiezero 2 жыл бұрын
I did all of the instruction yet it still having issues. My PC says its a 64 bit, but when I try to code it on Visual Studio Code. the C++ extension says I need a 32 bit configuration. now how do I uninstall the mingw 64bit?
@mikaelarvi1726
@mikaelarvi1726 3 жыл бұрын
[Running] cd "d:\Desktop\CC++\" && gcc test.c -o test && "d:\Desktop\CC++\"test 'gcc' is not recognized as an internal or external command, operable program or batch file. what does this mean ? and how am I to fix this?
@krisgurung190
@krisgurung190 3 жыл бұрын
Yeah, I have the same problem. If you get the solution to that, please post it as a reply here. I'll do the same (if I get the answer)!
@jiapengli2196
@jiapengli2196 3 жыл бұрын
You need to install a C/C++ compiler, such as Mingw-w64, and add the path to your Mingw-w64 bin folder to the Windows PATH environment variable. Check this code.visualstudio.com/docs/languages/cpp
@tanusreeghosh1262
@tanusreeghosh1262 3 жыл бұрын
Make surr that u have gcc mingw compiler setup in your computer and its path declared in enviroment variables . u can download gcc mingw from the wevsite
@harrisbond4472
@harrisbond4472 3 жыл бұрын
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.
@jofie2302
@jofie2302 3 жыл бұрын
@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.
@thaliakalli4207
@thaliakalli4207 Жыл бұрын
Thank you so much i'm just still having a problem with the external libraries genlib.h and simpio.h, it's not recognizing them. I've installed everything in the video including External Libraries but it's not working.
@MostafaLatrab
@MostafaLatrab Жыл бұрын
when try to tun: I get this: cd "c:\Cprograms\" && gcc arrayq.c -o arrayq && "c:\Cprograms\"arrayq 'gcc' is not recognized as an internal or external command, operable program or batch file.
@Richard_Nixon-mr6rq
@Richard_Nixon-mr6rq Жыл бұрын
I have the same issue I need guidance!
@centralindian
@centralindian Жыл бұрын
Getting this error after running code into Visual Studio. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
@justbeagoodperson4826
@justbeagoodperson4826 2 жыл бұрын
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 :'-)
@amolmagar6468
@amolmagar6468 2 жыл бұрын
"Iostream " such file not found but I already download extension plz help if you already solve it
@justbeagoodperson4826
@justbeagoodperson4826 2 жыл бұрын
@@amolmagar6468 Yeah delete all the downloads you did and do all the steps in the video again that might work 👍
@amolmagar6468
@amolmagar6468 2 жыл бұрын
@@justbeagoodperson4826 I have resolved it. I was not given. Cpp extension for c++ file and also gpp instead of gcc.
@jamesrgamesoffical
@jamesrgamesoffical 3 жыл бұрын
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
@LearningLad
@LearningLad 3 жыл бұрын
glad it helped :)
@drazenklikovac2964
@drazenklikovac2964 2 жыл бұрын
@@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
@aghalib4148
@aghalib4148 Жыл бұрын
Nice tutorial but i still cant get past this error: cl.exe build and debug is only usable when VS Code is run from the Developer Command Prompt for VS. Source: C/C++ (Extension) Ive tried following the vscode guide web page with no luck. Any help?
@debashisdas3693
@debashisdas3693 Жыл бұрын
i did exactly like you but whenever i try to run the code , the output gives me 'gcc' is not recognized as an internal or external command.
@qwertyman506
@qwertyman506 2 жыл бұрын
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.
@LearningLad
@LearningLad 2 жыл бұрын
Thank you for posting this :)
@Vule_20
@Vule_20 2 жыл бұрын
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"
@ChaneyChonga
@ChaneyChonga 4 жыл бұрын
I got.... [Running] cd "c:\Users\Chaney\Desktop\Code\Economy Game\" && g++ main.cpp -o main && "c:\Users\Chaney\Desktop\Code\Economy Game\"main 'g++' is not recognized as an internal or external command, operable program or batch file. how to fix? I've already restarted visual code, and downloaded the two extensions.
@anushabn1261
@anushabn1261 4 жыл бұрын
S same prblm i got...have u fix that bug
@LearningLad
@LearningLad 4 жыл бұрын
set the Path environment variable
@ChaneyChonga
@ChaneyChonga 4 жыл бұрын
@@LearningLad I'm sorry, can you be more specific? What's path environment variable?
@mehaktaneja712
@mehaktaneja712 4 жыл бұрын
@@ChaneyChonga u have to set a path in your windows enviourment variable (just search on youtube how to set up visual code studio and watch any video, u will understand easily bcz this is the basic to set up visual studio code.)
@therapyquack
@therapyquack 4 жыл бұрын
was this problem solved?? i am also facing problem
@AmanKumar-ir8kf
@AmanKumar-ir8kf Жыл бұрын
'gcc is not recognised as an external command,operable program kr batch file.what to do
@paakwesio
@paakwesio Жыл бұрын
After installing the two extensions as instructed in the video.... I still have an error of 'gcc' is not recognized as an internal or external command. Please any help
@joypurohit5404
@joypurohit5404 3 жыл бұрын
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
@Rebbelde
@Rebbelde 3 жыл бұрын
Hi, Thank You for making a wonderful video. I am getting an error in the terminal saying bash: cd: too many arguments can you please tell me why I am getting this error and how I can resolve it
@LearningLad
@LearningLad 3 жыл бұрын
If your file name or folder name contains spaces then remove them. Let me know whether this solves your issue
@Jarrod_C
@Jarrod_C 10 ай бұрын
how do you modify the code runner to run it with different standards and add other flags like -Wall and -std=c++17, etc??
@johnkery6449
@johnkery6449 3 жыл бұрын
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
@liyanth
@liyanth 3 жыл бұрын
even i stuck there
@pedronninci7374
@pedronninci7374 3 жыл бұрын
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)
@LearningLad
@LearningLad 3 жыл бұрын
If the file name contains space then write the file name between double quotes
@pedronninci7374
@pedronninci7374 3 жыл бұрын
@@LearningLad thank you very much
@LearningLad
@LearningLad 3 жыл бұрын
If file or folder name contains spaces then remove them
@hardikkumar555
@hardikkumar555 2 жыл бұрын
hey if you are there this my second time installing win gw for the second time and doing it again when the is compiled it show0 an error "undefined reffrence to win main@16 how can i fix this
@LearningLad
@LearningLad 2 жыл бұрын
save your program and then run it
@happinin
@happinin 2 жыл бұрын
awesome! all set up! only one issue: I had to turn off signature checking for it to work. how do i ensure i switch it back on now and i stop getting errors? also in visual studio code - i run in terminal but another cmd also pops up which i have to close before it starts in the vsc terminal. How do i prevent it from running in a separate window first and have it go straight to the terminal like with yours?
@sonochinos
@sonochinos 2 жыл бұрын
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"
@devanshkmishra
@devanshkmishra 2 жыл бұрын
thanks a lot!!
@tanupriyatommy
@tanupriyatommy 3 жыл бұрын
It's amazing sir, nice explanation. And it's helped me alot. Thank you so much.
@LearningLad
@LearningLad 3 жыл бұрын
my pleasure :)
@sriram5839
@sriram5839 3 жыл бұрын
Hello sir The output isn't coming. Every time I need to press ctrl+s. Please tell me anything to avoid this thanks
@THEAnimalzdA
@THEAnimalzdA 2 жыл бұрын
Lifesaver! Helped a lot to set up things correctly before my exams coming the next week, thank you!!
@ScorchGod
@ScorchGod Жыл бұрын
thank you so much learning lad!! i was so lost in the installation guide of c++ from VS code
@LearningLad
@LearningLad Жыл бұрын
You are welcome!
@sparshbaliyan5011
@sparshbaliyan5011 3 жыл бұрын
I am getting the error that says no such file or directory. How do I install stdio.h, please tell.
@connorlausch8054
@connorlausch8054 3 жыл бұрын
I had the same error, but it was because I had spelled it studio.h not stdio.h
@shalini6930
@shalini6930 3 жыл бұрын
While creating file name don't leave space. After typing without space, it run the output for me.
@MrWitherSkulls
@MrWitherSkulls 3 жыл бұрын
ctrl + s
@michelfotzo1276
@michelfotzo1276 3 жыл бұрын
try using return 1; instead of return0;
@manassehabraham5589
@manassehabraham5589 3 жыл бұрын
@@shalini6930 Thank you
@shubhamverma8051
@shubhamverma8051 3 жыл бұрын
This was amazing. Thank you so much for this video. It really helped me a lot.
@LearningLad
@LearningLad 3 жыл бұрын
my pleasure :)
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 76 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 3,5 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 11 МЛН
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 590 М.
Software engineer interns on their first day be like...
2:21
Frying Pan
Рет қаралды 13 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
So, you want to be a programmer?
20:43
ForrestKnight
Рет қаралды 211 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
How to REALLY learn C++
8:13
The Cherno
Рет қаралды 771 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 292 М.
How to set up C++ in Visual Studio Code
6:53
Kenny Yip Coding
Рет қаралды 552 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 76 МЛН