How to Set up Visual Studio Code for C and C++ Programming [ with MSYS2 ]

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

Комментарии • 81

  • @thecodebear
    @thecodebear  5 месяцев назад +7

    If that didnt work try this : ruclips.net/video/KnPj8Ow3bM8/видео.html

  • @Name-bb8wo
    @Name-bb8wo 11 месяцев назад +54

    guys anyone had a problem with entering y. just click enter before it to accept and then you can write y and it will download everything

  • @bepawsitiv
    @bepawsitiv 10 месяцев назад +5

    really helpfull video, after following each step one by one my c++ setup is completed in vs code. thankyou for making such informative video

  • @keanmaulana4884
    @keanmaulana4884 4 месяца назад +3

    Hello mister, I am very proud of your tutor. I am a student studying informatics and I was given an assignment to code C++. It's been a week and I've been getting errors.❤

  • @ismaeltezoh5824
    @ismaeltezoh5824 11 месяцев назад +18

    This is something I have tried several times but I still can't do it

  • @alexanderliammontefalco4789
    @alexanderliammontefalco4789 8 месяцев назад +10

    I am having an error when I run it . The error is "g++: error: Downloads\programcodes\programTEST: No such file or directory
    "

  • @vnzlb
    @vnzlb 10 месяцев назад +11

    Glad it worked for you guys, mine is not...

  • @anllerys
    @anllerys 9 месяцев назад +3

    I follow everystep one by one and whem finished the helloWorld last 5 to 10 seconds to run, any advice. I try in visual estudio 2022 and happen the same.

  • @AHSANENGINEER-y7u
    @AHSANENGINEER-y7u 2 месяца назад

    thanku so much sir is video is slove my problem i watch multiple videos to slove my problem but this one slove is amazing u r great person sir

  • @AminAlan
    @AminAlan 5 месяцев назад +1

    Is it possible to upgrade to updated C and C++ versions of MSYS?

  • @meliodassama988
    @meliodassama988 9 месяцев назад +8

    Really need help, my visual code says "cannot build and debug because the active file is not a c or c++ source"
    I made a .c and a .cpp file, both don't work

    • @jagratitripathi1861
      @jagratitripathi1861 8 месяцев назад +1

      Same here did you get any help

    • @meliodassama988
      @meliodassama988 8 месяцев назад

      @@jagratitripathi1861 i forgot how but i download some extensions from microsoft for running, compiling, and debugging, as well as some color coded lines lol.
      I managed to use it when i save the file and THEN build it

    • @agamer2943
      @agamer2943 7 месяцев назад +1

      try to remove space from "a .c" to make it "a.c"

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

    If it doesn't work once you ran vs code, make sure you added the correct path to your system environment variables. The default should be C:\msys64\ucrt64\bin

  • @riderofriders7342
    @riderofriders7342 7 месяцев назад

    But off topic but, anyone knows the VS Code theme he's using? 3:34

  • @osamagx78
    @osamagx78 11 месяцев назад +1

    does it work for those who sve their code in a usb flash drive ?

  • @andrewsoufia2279
    @andrewsoufia2279 3 месяца назад +1

    are these safe to download and use?

  • @meliodassama988
    @meliodassama988 9 месяцев назад +1

    just wanted to clarify, why is microsoft c/c++ has only c++? what extension is for c only?
    newbie here

    • @drainmysack
      @drainmysack 9 месяцев назад

      c and c++ are the same, c++ just uses classes and objects where c does not

    • @jagratitripathi1861
      @jagratitripathi1861 8 месяцев назад +1

      Because c is a subset of c++ so we will be able to access features of both languages with c++

    • @abc-qk3ml
      @abc-qk3ml 4 месяца назад

      because c++ is c with oop

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

    bro after inputing y command it is showing same thing ....i.e Enter a selection (default=all): what to do ?

  • @The_CEO_of_SCS
    @The_CEO_of_SCS 10 месяцев назад +2

    The "Edit Environment Variable" window aren't the same as that one when I clicked on "Path."

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

    can i install this on another drive of my laptop?

  • @MainHook
    @MainHook 11 месяцев назад +1

    Hi! I'm sorry for using this space asking you this, but my Hello World took 10+ seconds to compile and run. Awkward, right? Already reinstall the MSYS2, use the g++ instead of the gcc on c_cpp_properties.json but nothing worked. Maybe if I could compile and run the same Hello World program on another IDE, to see if this is a VScode problem, but idk how to do it. Can you help me, pls? Thank you!

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

      my vs code takes 6.2 second to print hello world

  • @Sidmohiteee2008
    @Sidmohiteee2008 6 месяцев назад +1

    Ya that was the exact probleem i faced thanks sir for making me overcome over it

  • @stevengaming55
    @stevengaming55 7 месяцев назад +2

    i now get the error
    "the prelaunch task 'C/C++:gcc.exe build active file' terminated with exit code -1."
    what to do ?

    • @SpaceVultureV
      @SpaceVultureV 7 месяцев назад +1

      Yo same. Idfk what to do tho

    • @ryoasuka5528
      @ryoasuka5528 6 месяцев назад

      Same problem here...

    • @komaedanagito841
      @komaedanagito841 5 месяцев назад +1

      Select use g++, not gcc, when you're debugging

    • @ayushpawar5657
      @ayushpawar5657 4 месяца назад +1

      I assume you have selected something else while selecting for run and debug, search for tasks.json file, then delete everything inside outermost parenthesis, now save the file, this deletes all the saved settings,
      Now you can again click on run button in your active window, when asked for a selection select C/C++: g++.exe option. Now it will work as expected.

  • @alexandreramalho9637
    @alexandreramalho9637 9 месяцев назад +2

    can't belive I wasted my time seeing the last year guide... oh god, thanks

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

    anyone know how to fix Launch:program "Path" Does not exist error?

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

      @@zenovcozru6153 you are probably running a file with wrong extention

  • @davideschreiber2821
    @davideschreiber2821 8 месяцев назад

    Completed everything as described, but get error message when I try to run a program. So frustrating. I think I'll abandon C with curses and stick with Python.

  • @souljarohill8795
    @souljarohill8795 2 месяца назад

    Worked to a tee. Thank You

  • @freddyboiytg2103
    @freddyboiytg2103 7 месяцев назад

    The link isn't downloading for me

  • @PedroFalcao-lp9lk
    @PedroFalcao-lp9lk 8 месяцев назад

    Straight to the point! Ty so much

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

    bash command not found

  • @luyasjohnrold7388
    @luyasjohnrold7388 4 месяца назад +2

    Thanks its working ❤

  • @coriesalen6966
    @coriesalen6966 10 месяцев назад

    no. 6 step it's not working when I put y..it's invalid 😥i can't proceed to the next step😥😥

  • @_ayush_aggarwal_
    @_ayush_aggarwal_ 4 дня назад

    Thankyou so much sir✨

  • @homepunks9040
    @homepunks9040 10 месяцев назад

    can i delete msys2 afterwards??

  • @selviranin7000
    @selviranin7000 8 месяцев назад

    You are a life saver! Thank you 🎉

  • @lelouch6872
    @lelouch6872 3 месяца назад +1

    Thnx a lot.......it was so annoying ❤

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

    Error: failed retrieving file

    • @I.Saylor
      @I.Saylor 5 месяцев назад

      Did it work? For you? I have the same problem

  • @sadik_tutorials1
    @sadik_tutorials1 2 месяца назад

    TYSM!🎉🎉🎉🎉🎉🎉🎉🎉🎉

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

    Awsome thank you so much

  • @amruthp407
    @amruthp407 6 месяцев назад

    Thank you soooo much❤

  • @lapointe3344
    @lapointe3344 4 месяца назад

    thanks for the help

  • @gssaan5871
    @gssaan5871 2 месяца назад

    Thanks ❤

  • @jacktapping
    @jacktapping 7 месяцев назад

    great video thanks

  • @cloudbel
    @cloudbel 4 месяца назад

    i do not understand why they made it that complicated

  • @varun.T
    @varun.T 6 месяцев назад

    thank you man.

  • @xoxo.k4te
    @xoxo.k4te 7 месяцев назад

    didn't work for me :

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

    the terminal looks ugly but at least its finally working i was bout to kms

  • @sprtywashere2077
    @sprtywashere2077 10 месяцев назад +2

    it keeps showing a fucking annoying ass G++ error its annoying as hell.

    • @kurakura05
      @kurakura05 10 месяцев назад +2

      hey same me too
      did you find out any solution for this?

    • @akiira9
      @akiira9 9 месяцев назад +1

      i gave up and went to visual studio instead of code

  • @molo-w9p
    @molo-w9p 2 месяца назад

    thanks

  • @mateenqureshi1417
    @mateenqureshi1417 6 месяцев назад

    thankyou!

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

    thanks a lot

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

    best

  • @SpaceVultureV
    @SpaceVultureV 7 месяцев назад

    Yeeeeea, that didnt work

  • @Jenniekim-bp9hw
    @Jenniekim-bp9hw 6 месяцев назад

    Fake

  • @PatarapolWongpanich
    @PatarapolWongpanich 6 месяцев назад

    Thank youuu