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

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 3,4 тыс.

  • @EduardoMengesMattje
    @EduardoMengesMattje 3 года назад +2021

    the fact that this video has 1 million views shows how bad vscode is at telling the user basic functionality

    • @shivakumar-lv6wr
      @shivakumar-lv6wr 3 года назад +43

      Absolutely!, This was super simple!

    • @Player-fx3vt
      @Player-fx3vt 2 года назад +17

      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

      2.365786 million*

    • @nomankhan7190
      @nomankhan7190 2 года назад +1

      Right.

  • @divyanshsati1116
    @divyanshsati1116 4 года назад +1726

    For people who are unable to get the output, save your code with ctrl s, and then run!

  • @midnari
    @midnari 2 года назад +6

    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 года назад +1321

    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 года назад +63

      glad that my video helped you :)

    • @eyeofthepyramid2596
      @eyeofthepyramid2596 4 года назад +9

      @@LearningLad it shows me error: ld returned 1 exit status

    • @williammatiz9745
      @williammatiz9745 4 года назад +6

      @@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 4 года назад +1

      @@LearningLad th cc++ extension is not working ,please help

    • @Alpha-uw6wn
      @Alpha-uw6wn 3 года назад

      Sir where u live in India?

  • @utkarshaggarwal1110
    @utkarshaggarwal1110 2 года назад +3

    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.

  • @pratikanand5161
    @pratikanand5161 2 года назад +96

    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.

  • @zainabsyeda5644
    @zainabsyeda5644 4 года назад +212

    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.

  • @Scottylili
    @Scottylili 4 года назад +26

    you're a life saver it was driving me crazy (didn't know how to run the code so it accepts input)

  • @meryemkarnas5448
    @meryemkarnas5448 22 дня назад +1

    Literally, I had tried everything, and nothing worked except this. You saved my mental health. Thanks a lot

    • @LearningLad
      @LearningLad  20 дней назад

      Glad my video helped you out. :)

    • @Salamanca-joro
      @Salamanca-joro 4 дня назад +1

      i thought i was the only one who was stressing about this so much

  • @sleepyretroid
    @sleepyretroid 2 года назад +20

    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 года назад +2

      most welcome :)

    • @Oskar-zt9dc
      @Oskar-zt9dc 2 года назад

      Actually, it will be easier if you activate autosave

    • @LoradLP
      @LoradLP 2 года назад +3

      Thank you, that saved me from like 15 min of googling probably :)

    • @daisy6672
      @daisy6672 Год назад

      Thanku so much

    • @synth-_-5093
      @synth-_-5093 9 месяцев назад

      Thank you so much I thought I did something wrong was gonna watch all the vids back lol

  • @Quiselott
    @Quiselott Год назад +4

    Man I would have never gotten this without you! Professor didn't want to teach us how to setup VS Code. THANKS!

  • @rishirajvihol7560
    @rishirajvihol7560 Месяц назад +2

    I was wandering with this problem for a day now, but finally got it . Thanks to you!

  • @Nuggz_TV
    @Nuggz_TV 3 года назад +31

    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  3 года назад +3

      Pleasure

    • @wotizit
      @wotizit 3 года назад

      nws

    • @kshau_
      @kshau_ 3 года назад

      Don't curse.

    • @blubbermammoth8426
      @blubbermammoth8426 2 года назад +1

      @@kshau_ I don't think the internet is the place for you then mate.

    • @kshau_
      @kshau_ 2 года назад

      @@blubbermammoth8426 Shut up.

  • @chiragthakur1692
    @chiragthakur1692 2 года назад +6

    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, ♥

  • @kimvo4929
    @kimvo4929 10 месяцев назад +1

    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!

  • @luisespinoza3562
    @luisespinoza3562 3 года назад +6

    Thank you!!! I'm just starting to code in c++ and my professor couldn't explain it as easily as you just did!!

  • @Mohitgamming7777
    @Mohitgamming7777 4 года назад +5

    Thanks bhai tune to jindgi hi badal di.😂 pareshan ho gaya tha in online compilers se. Very very very thanks 🙏🙏🙏

    • @LearningLad
      @LearningLad  4 года назад +1

      glad this tutorial helped you :)

  • @VaishnavP
    @VaishnavP Год назад +1

    This was the only video explaining about the " *Run in terminal* " setting. I was stuck in there.... Thank you so much

  • @abhishekchaudhary6975
    @abhishekchaudhary6975 4 года назад +8

    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.

  • @sonochinos
    @sonochinos 2 года назад +4

    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"

  • @hypead5507
    @hypead5507 Год назад +2

    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.

  • @qwertyman506
    @qwertyman506 3 года назад +4

    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  3 года назад +2

      Thank you for posting this :)

    • @Vule_20
      @Vule_20 2 года назад +3

      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"

  • @pradyumnapatil5190
    @pradyumnapatil5190 4 года назад +4

    THANK YOU! Can't tell you how much I have searched for the input issue.

  • @tahakarakas3983
    @tahakarakas3983 2 года назад +1

    i have watched tons of videos about my error none of these videos helped and you fixed perfectly thank you soo much

  • @rockonthehill1618
    @rockonthehill1618 4 года назад +13

    I HAVE BEEN SEARCHING SO MUCH TIME FOR THIS. THANK YOU MAN, YOURE AWESOME

  • @vp4156
    @vp4156 Год назад +3

    Crystal Clear. Thank you Sir!

  • @ScorchGod
    @ScorchGod Год назад +2

    thank you so much learning lad!! i was so lost in the installation guide of c++ from VS code

  • @FazriGading
    @FazriGading 3 года назад +22

    thank you so much for the Run in Terminal, i don't even know that earlier!!!

  • @alvarozs6538
    @alvarozs6538 3 года назад +8

    This last part, run in the terminal, is just which I was looking for. Thank you so much.

  • @ratikvarshney
    @ratikvarshney 3 года назад +1

    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.

  • @박주현-d8z
    @박주현-d8z 3 года назад +19

    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 :)

  • @sudhirpadhye7093
    @sudhirpadhye7093 4 года назад +15

    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!

  • @erhanertem196
    @erhanertem196 2 года назад +1

    C++ installation and now this...made my day..thanx..That read only output tab drove me crazy...

  • @justbeagoodperson4826
    @justbeagoodperson4826 3 года назад +3

    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 3 года назад

      "Iostream " such file not found but I already download extension plz help if you already solve it

    • @justbeagoodperson4826
      @justbeagoodperson4826 3 года назад

      @@amolmagar6468 Yeah delete all the downloads you did and do all the steps in the video again that might work 👍

    • @amolmagar6468
      @amolmagar6468 3 года назад

      @@justbeagoodperson4826 I have resolved it. I was not given. Cpp extension for c++ file and also gpp instead of gcc.

  • @neidagarza8345
    @neidagarza8345 3 года назад +11

    This was SO helpful thank you so much!!
    I spent like 5 hours not realizing I needed a code runner extension 🤦🏽‍

  • @HADEson_
    @HADEson_ 2 года назад +1

    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

  • @luccagazottovettori5600
    @luccagazottovettori5600 4 года назад +4

    man, you really saved my life. I'd been trying to run my code for hours before I saw this video. Thanks :)

  • @sakshamchaturvedi
    @sakshamchaturvedi 3 года назад +22

    Thank you so much for this!
    In comparison to your video, other installation guides are just useless.
    Great work 💯

  • @niccolosancisi1920
    @niccolosancisi1920 2 года назад

    After watching so many useless guides I finally found this video! Thank you so much it's all working and functioning now!

  • @marjoriejohnson9421
    @marjoriejohnson9421 3 года назад +13

    this was great. fast and painless. Thank you so much!

  • @Martinko_Pcik
    @Martinko_Pcik 3 года назад +49

    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 2 года назад

      Could you eelaborate this further,like how to run any code in any machine?
      Thanks in advance 😃
      09.08.2022 7:17 pm ist

  • @HamzaAli-we3lg
    @HamzaAli-we3lg 2 года назад +1

    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.

  • @reymilocuevas3485
    @reymilocuevas3485 4 года назад +5

    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

  • @victorstone3720
    @victorstone3720 3 года назад +34

    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 года назад +3

      Glad this video helped you.
      Will make more content :)

  • @gauranshchopra1100
    @gauranshchopra1100 2 года назад +1

    I had to start coding in c and c++ and this video of yours helped me a lot. thank you so much

  • @Dima-rj7bv
    @Dima-rj7bv 3 года назад +15

    This is exactly what I was looking for! Thank you for the exhaustive explanation!

  • @puregold3935
    @puregold3935 2 года назад +12

    You have been a great help. Very clear instructions and easy to follow. Thank you so much ! I can finally start practicing C 😁

  • @keith18793
    @keith18793 2 года назад +1

    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.

  • @Shaurya.R
    @Shaurya.R 3 года назад +9

    Thnks finally I can do c++!!

  • @jamesrgamesoffical
    @jamesrgamesoffical 4 года назад +6

    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  4 года назад

      glad it helped :)

    • @drazenklikovac2964
      @drazenklikovac2964 2 года назад +1

      @@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

  • @lloyd9241
    @lloyd9241 Год назад +1

    Thank you so much I was searching on how to use the input scanf and your tutorials really helped me, thank you very much

  • @shivakumar-lv6wr
    @shivakumar-lv6wr 3 года назад +3

    Your video was simple and easy to follow. I am saving this in a playlist for later!

  • @nishanth8438
    @nishanth8438 4 года назад +4

    My god
    Awesome bro
    🔥🔥🔥🔥
    Today my day was fully wasted in this but now 🎉🎉🎉🎉

  • @mehjamilabonny4160
    @mehjamilabonny4160 2 года назад +1

    relief! watched so many videos to start up C programming. this video helped so simple and precise explanation

  • @amarpratapsingh9415
    @amarpratapsingh9415 3 года назад +13

    This is called perfection..

  • @chandrashekarr1977
    @chandrashekarr1977 3 года назад +5

    Fantastic. Simple and easy to follow Language & to the point (no nonsense talkings to kill time) content. Thanks.

  • @erickgaticacandia967
    @erickgaticacandia967 Год назад +1

    FInally a video that worked for me, I'm starting with C++ and now I can run code, thank you !

  • @KhalidKhan-pm1ov
    @KhalidKhan-pm1ov 2 года назад +3

    Thank you so much for this 😊😊

  • @tanupriyatommy
    @tanupriyatommy 4 года назад +7

    It's amazing sir, nice explanation.
    And it's helped me alot. Thank you so much.

    • @LearningLad
      @LearningLad  4 года назад

      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

  • @brendurant
    @brendurant Год назад +1

    Best tutorial out there, was trying to figure this out elsewhere for too long.

  • @lanatrzczka
    @lanatrzczka 3 года назад +13

    Thanks to you I got it! Absolutely fantastic tutorials! Hope you do some stuff in C so we can all learn from you.

  • @Brain_With_Limbs
    @Brain_With_Limbs 4 года назад +20

    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.

  • @vijayalaxmibankar3498
    @vijayalaxmibankar3498 Год назад +1

    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

  • @AceGriffin8839
    @AceGriffin8839 4 года назад +6

    You are a freaking legend brother. Thanks a lot for this video.💙

  • @lilmonkianime8084
    @lilmonkianime8084 4 года назад +11

    DAAAMN, THANK YOUU BERY MUCH!

  • @adityajadhav9876
    @adityajadhav9876 Год назад

    It's amazing...... it is the only video on RUclips which solves all the problems for the beginner

  • @cleytonsantos6162
    @cleytonsantos6162 Год назад +3

    Very good video. Simple and straight to the point. Thank you, man.

  • @jahlijah
    @jahlijah 4 года назад +11

    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

  • @AGREEaddh
    @AGREEaddh Год назад +1

    Don't know how to thank you for this video i was struggling to use VS code ❤..
    Thank you and keep educating more people

  • @arjunseal2417
    @arjunseal2417 4 года назад +41

    "'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 4 года назад

      Add path. Then restart your computer and try again

    • @rasu84
      @rasu84 4 года назад

      @@vvekmathew How do I know the path where gcc is installed

    • @rasu84
      @rasu84 4 года назад +9

      @@renjithroy8422 Yeah thanks. I figured it out. This video assumes that people have already installed MinGW. Should have been clarified.

    • @renjithroy8422
      @renjithroy8422 4 года назад +4

      @@rasu84 Great. He had made another video where he explains on how to install MinGW, that's how I figured it out.

    • @shouryamkumar6158
      @shouryamkumar6158 4 года назад +1

      @@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.

  • @srilalitabhuvaneswarid
    @srilalitabhuvaneswarid 2 года назад +23

    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 2 года назад +8

      he did not tell how to install compiler to run code

    • @prog-255
      @prog-255 Год назад

      I got same thing

    • @ishu4370
      @ishu4370 5 месяцев назад

      same here

    • @AnGhaeilge
      @AnGhaeilge 3 месяца назад

      You need to install MinGW

  • @ritwikasasmal2580
    @ritwikasasmal2580 Год назад +2

    I was struggling to configure C/C++ with VS code for hours. thank you for making it so easy! :)

  • @ShahidKhan-uf8hd
    @ShahidKhan-uf8hd 4 года назад +8

    I got an error saying "The system cannot execute the specified program.". What's do I do?

  • @Flavzz
    @Flavzz 4 года назад +4

    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.

  • @Debjit_Adhikari
    @Debjit_Adhikari Год назад +1

    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.

  • @gamingstrom6004
    @gamingstrom6004 4 года назад +15

    While running the code it is saying gcc is not recognized as an internal or external command,
    Plz help

    • @anirudhsharma3168
      @anirudhsharma3168 4 года назад

      yes I am having the same issue !

    • @Memer2022
      @Memer2022 4 года назад

      @@anirudhsharma3168 link MinGW

    • @antonel_rch
      @antonel_rch 4 года назад

      @@Memer2022 how?

    • @Memer2022
      @Memer2022 3 года назад

      @@antonel_rch watch his video where he installs MinGW. Follow the procedure and then restart VS Code application.

    • @hahayes7205
      @hahayes7205 3 года назад

      Try adding the g++ and gcc path to your environment variables

  • @arousingmusic7194
    @arousingmusic7194 2 года назад +7

    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 ❤❤❤❤❤❤

  • @hariomshukla6654
    @hariomshukla6654 2 года назад +1

    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.

  • @sparshbaliyan5011
    @sparshbaliyan5011 4 года назад +19

    I am getting the error that says no such file or directory. How do I install stdio.h, please tell.

    • @connorlausch8054
      @connorlausch8054 4 года назад +2

      I had the same error, but it was because I had spelled it studio.h not stdio.h

    • @shalini6930
      @shalini6930 4 года назад +3

      While creating file name don't leave space.
      After typing without space, it run the output for me.

    • @MrWitherSkulls
      @MrWitherSkulls 4 года назад

      ctrl + s

    • @michelfotzo1276
      @michelfotzo1276 4 года назад

      try using return 1; instead of return0;

    • @manassehabraham5589
      @manassehabraham5589 4 года назад +1

      @@shalini6930 Thank you

  • @nightyysleeps
    @nightyysleeps 4 года назад +9

    "Hello World"
    Say the guy that will make beautiful games one day

    • @samdavepollard
      @samdavepollard 4 года назад +3

      "Hello World, are you ready for awesome?"

  • @ganeshssawade7621
    @ganeshssawade7621 3 года назад +1

    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

    • @LearningLad
      @LearningLad  3 года назад

      glad my video's helped you :)

  • @succor5266
    @succor5266 3 года назад +7

    Brother it shows ""gcc" is not recognized as an internal or external command"

    • @RoarStaze
      @RoarStaze Год назад

      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

  • @shubhamverma8051
    @shubhamverma8051 4 года назад +4

    This was amazing. Thank you so much for this video. It really helped me a lot.

  • @arunjaisankar411
    @arunjaisankar411 3 года назад +1

    Started my life in learning c and c++ with your heartful of hands❤🙂

  • @harsh-ox9gy
    @harsh-ox9gy 4 года назад +6

    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 .😭😭

  • @harrisbond4472
    @harrisbond4472 4 года назад +4

    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 4 года назад

      @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.

  • @user-nm4vn9tq5o
    @user-nm4vn9tq5o 3 года назад +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..

  • @rwakade3091
    @rwakade3091 4 года назад +31

    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 4 года назад

      did you find out?

    • @kalaigaming6902
      @kalaigaming6902 4 года назад

      You still need solution?

    • @sajidabanu3020
      @sajidabanu3020 4 года назад

      @@kalaigaming6902 yes i need

    • @raigorstonehoof6477
      @raigorstonehoof6477 4 года назад

      Try to disable your antivirus or make your antivirus allow it.

    • @Piyush13
      @Piyush13 4 года назад

      I'm also getting this error please help 🙏

  • @nikhilnautiyal4146
    @nikhilnautiyal4146 4 года назад +6

    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 4 года назад

      I have the exact same problem i hope there is a fix for it

    • @rajivkumarkale
      @rajivkumarkale 4 года назад

      @@sshadyzerapper7318 there is a fix, you have to include the path of your mingw compiler path in the configuration

    • @soumyadeeproy7605
      @soumyadeeproy7605 4 года назад

      @@rajivkumarkale what does that mean, care to explain ?

  • @afnankhan9865
    @afnankhan9865 2 года назад +1

    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 🙂

  • @prog-255
    @prog-255 Год назад +4

    'gcc' is not recognized as an internal or external command,
    operable program or batch file.

    • @marrrinus
      @marrrinus 11 месяцев назад

      Same problem. Did you solve it?

    • @prog-255
      @prog-255 11 месяцев назад

      @@marrrinus no

    • @marrrinus
      @marrrinus 11 месяцев назад

      @@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

  • @johnkery6449
    @johnkery6449 3 года назад +5

    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

  • @arnoygayen1984
    @arnoygayen1984 2 года назад +1

    A huge thanks to you. You just saved me from breaking my computer.
    subscribed

  • @pathanaman005
    @pathanaman005 4 года назад +7

    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... 🙏

  • @pedronninci7374
    @pedronninci7374 3 года назад +6

    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 года назад +1

      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

  • @prakashnarayan4770
    @prakashnarayan4770 2 года назад +1

    been struggling with this issue for a week , resolved quickly , thank you!

  • @joypurohit5404
    @joypurohit5404 4 года назад +10

    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

  • @atakaravelioglu301
    @atakaravelioglu301 4 года назад +4

    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?

    • @meghnanakhate920
      @meghnanakhate920 4 года назад +2

      Same error.
      Please tell if you get some solution

    • @LearningLad
      @LearningLad  4 года назад +1

      check the path environment variable.
      if you have set it in the user variables section then try setting it in system variables section

    • @faadilshaikh1064
      @faadilshaikh1064 2 года назад

      @@LearningLad sir but kaha se karna hai isko

  • @pratibhasoni2576
    @pratibhasoni2576 3 года назад +3

    When I run the program it is showing
    "gcc is not recognized"
    Please tell how to resolve this issue

    • @LearningLad
      @LearningLad  3 года назад

      if gcc is installed then make sure that you have properly set the path environment variable

  • @kevintran1488
    @kevintran1488 3 года назад +5

    gcc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file

    • @LearningLad
      @LearningLad  3 года назад

      Make sure that you have set the path environment variable properly :)

    • @zzyber1660
      @zzyber1660 3 года назад +1

      @@LearningLad wdym by that.

    • @LearningLad
      @LearningLad  3 года назад

      After installing c compiler you need to add its installation location to the path environment variable