How to Install MSYS2/Mingw-w64 and Run C/C++ files Using Visual Studio Code 2021

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • How to download and install MSYS2/Mingw-w64. How to run C/C++ program using VS Code and MSYS2/Mingw-w64. How to set up vscode for C/C++ applications. .
    ***********************************
    🔥 Complete Udemy Courses :
    Build E-commerce Web Application using ASP.NET Core : www.udemy.com/...
    Build E-commerce Web API using ASP.NET Core : www.udemy.com/...
    Build E-commerce Web Application using React JS : www.udemy.com/...
    ⬇️ Free Document Proofreading ⬇️
    ► Grammarly : grammarly.go2c...

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

  • @griffinq8003
    @griffinq8003 Год назад +30

    I just wanted to say that you, sir, are a gentleman and scholar.
    Little did I know that the simple act of typing 'gcc' and then an executable file name on a windows command prompt would be one of the most difficult computer science challenges I have faced to date. I have spent hours on videos and articles trying to make it happen, but with no results other than me reflecting on my own poor life decisions leading me up to this point. I wish I had known ages ago that the ENTIRE answer was in this one 11:29 youtube video. After watching this, I can now type gcc from a windows command prompt, and the only thing I have to worry about is how many errors my shitty code will generate. What a simple and joyous worry to have!
    Thank you so much for this video!

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

      Please could you tell me about how you solve the problem because i am still facing the problem of compilation

  • @nts94
    @nts94 Год назад +6

    Years later and who would've known that I would be finding this video very essential. I salute you sir you are a life saver!!

  • @kitten749
    @kitten749 Год назад +18

    I just want to thank you a lot for your efforts and well submitted information. Never have I seen such a good and obvious tutorial on this topic! I have been searching almost the whole Internet about solving this problem and have found nothing before your video. It is really useful nad understandable. I suppose, you have saved a lot of lives of those, who have been fighting with this problem for a lot, as me:) Go ahead!

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

    Thank you, thank you, thank you! You may have singlehandedly saved me from failing one of my college modules. If only lecturers could be so clear in their explanations as you.

  • @lazlo686
    @lazlo686 2 года назад +40

    For anyone doing this on a Windows 11 computer, DO NOT add the semi colon like how he does in the video. Windows 11 will automatically create one for you.
    Steps for the Path Part and onwards
    1. Click Edit
    2. Click New
    3. Paste Path
    4. Select that Path and click on Move up until the paths you want are in the right priority as stated in the video.
    5. Install C/C++ on VS code
    6. Install Code Runner

  • @HydeFromT70s
    @HydeFromT70s 7 месяцев назад +4

    At least one person who doesn't copy others and show how to install the old 2013 version of MinGW.... xD

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

    Going straight into my "tutorials that worked" playlist. Awesome and quick guide.

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

    I have been trying to setup this for 3 hours. Your video saved me a lot. THANK YOU !!

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

    This is one of the best illustration of installing and using MSYS2.

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

    I don't understand why do people not hit the like button for something so helpful..

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

    I don't have enough words to express gratitude. Thank You

  • @ashotsimonyan7683
    @ashotsimonyan7683 7 месяцев назад +3

    Thanks man.
    You're the best in the world.
    Thanks for solving my problem.

  • @CodeX-hv1sf
    @CodeX-hv1sf 6 месяцев назад +1

    your video have been such great help every minute mistake's have been well addressed and solved with great simplicity in my case
    1. I had installed msys2 but having issue incofiguring setting of env path .
    2. I been using code runner for ages i didn't know that we can set the runner to run in terminal.
    thanks a lot

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

    I've passed an entiry day trying to make it work and I was about to give up .Thanks you so much, you saved me.

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

    Thanks a lot for this informative video it really helped me in setting up the compiler for C. It had become such a headache, but thanks to your video it was easy and fast. Once again, Thanks a Lot!

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

    6:02 OMG THANKS! I was recently having trouble in the terminal for not recognizing 'make'. i didnt know that i also have to add this since others didnt mention it.

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

    just thanks you, i had some issues to install it but finally a understanble tutorial, i just want to thanks you. I suscribed tysm and good luck for the year :)

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

    After trying many tutorials, only this one works. Thank you.

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

    finally, something really worked, after spending so many hours trying with other tutorials.

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

    Thanks sir, I just succeeded installed it correctly

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

    im gonna have to save this somewhere this is so good and easy to follow
    i love how an indian guy can make a better tutorial then the official microsoft one (wich dint work for me twice)
    like ive been folowing the microsoft one for an hour and it doesnt work and then this takes me like 15 minutes and it works
    indian guys on youtube realy are the smartest people on earth
    thank you for fixing my problem, kind random indian guy

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

    Thankyou sir I watched more than 10 videos but no one worked
    This video worked correctly..☺️

  • @siddhantpathak9405
    @siddhantpathak9405 2 года назад +5

    The video was very useful !! Thank You for your efforts :)

  • @ramesh-adhikari
    @ramesh-adhikari 2 года назад

    best installation guide . i was stuck downloading this , watching other video didn't helped me a bit but this is legit video.

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

    Finally, the full installation is completed..Thank you so much sir for your kind help through this video

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

    although this video upladed in 2021, works for 2023 and windows 11 too. Thank you :)

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

    Thank you, clear and concise. I appreciate

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

    Great video, really amazing!! I wasted two days (prior) to setup MingW64 compiler. Thanks

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

    man this is the best tutorial i got in installing c and c++ thanku for this

  • @Ayush-bk8ll
    @Ayush-bk8ll 2 года назад +4

    Thanks for the great help Sir!!
    Concise, to the point, and a perfect tutorial...
    Thanks!!
    [[My Gratitude]]

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

    Nice and worked on windows 10 pro🎉🎉

  • @r.e.n.a.d.10
    @r.e.n.a.d.10 2 года назад +1

    thank you so much!!! i really needed this and your tutorial was so helpful!! TY!!

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

    my mingw64's bin folder is empty. Can't find a way out of this problem of missing headers

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

      had a similar problem look in the ucrt64 folder for bin, should be there couse they made some changes

    • @1..1..1..1H
      @1..1..1..1H 8 месяцев назад

      @@Pleasjustletmefuckingfinshthis Can I just copy-paste in bin?

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

      @@1..1..1..1H you can Just change the place that the launche.json File is being directed to, to the bin in the ucrt64 folder that should probably work

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

    Why my bin folder is empty

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

    Why did at the last step my msys2 terminal installed 15 package rather than downloading 125 as shown in his computer.

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

    Thanks for the enormous help sir 😃!!
    I owe you. 😊

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

    Thank you so much brother
    I was frustrated and finally got ur video

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

    Thank You! This works in 2023

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

    fantastic video!!! this is the only video that helped me solve the problem!!! Thank you so much!

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

    Yeah video using c/++, i like this video,video amazing

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

    It works! Best mini tutorial thank you so much

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

    This video is really helpful, thank you brother .

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

    Extremely helpful video! Thanks a lot!

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

    Quick and easy go straight steps ... best one

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

    just like Einstein said "simple but not simpler!", best so far

  • @mychannel-ij3uf
    @mychannel-ij3uf 7 месяцев назад

    Thank you so much bro Helped a lot
    I was trying to run C program for like 3 days but errors arised after following this tutorial It finally worked.
    TYSM sub earned.

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

    Thank You!🥰

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

    THANK YOU SO MUCH!!!!!! This video saved my life

  • @technicalm.t.b5251
    @technicalm.t.b5251 2 года назад +1

    Thanks for making this video ;)

  • @yash1152
    @yash1152 2 года назад +2

    thankss a lot, yes, really very helpful video. the extensions ui etc in vscodium have understandably a slight difference to them, i faced a li'l bit of problem as i didnt know about it. but yeah, other than that, very useful video.

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

    it was very helpful thank your very much for such professional video about installation of Mingw

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

    I m not able to install mingw and msys for vs studio

  • @DeepakSingh-nh2qe
    @DeepakSingh-nh2qe 2 года назад +5

    Very amazing and truly helpful tutorial!!
    It is different from other tutorials present over there on youtube
    If somebody ask me about how to get started with compiler and IDE installation for C/C++, this video will be recommended ✌✌
    "Your way of communicating is really nice and very friendly and hence engaging"
    Suggestion : "Well, your words were easily understandable and recognizable that you were throwing from your mouth during speaking, BUT, I would like to suggest you to put the subtitles also in your videos and also even in this one 😊. This will increase the productivity of your videos."
    Congo, you got a subscriber ❤

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

      RUclips already generates subtitles automatically. I cannot make subtitles because this will increase the video processing time significantly. You can click on the 5th button from the right (subtitles) to enable the subtitles

    • @DeepakSingh-nh2qe
      @DeepakSingh-nh2qe 2 года назад

      @BoostMyTool sir, you're right
      But, to your information, I want to tell that, you can also add subtitles to your video. And, for Auto generated subtitles even, you have to go through the Settings.
      Also sir, I have tried that 5th button of subtitles, about which you wrote..... But it pops that you haven't turned subtitles on or there's no subtitles from the creator

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

      @@BoostMyTool thank you soo much you saved my day.

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

      @@mdyeasinarafathuser it did the same for me, i think its if you tried installing it in the past before and dint fully uninstall it before folowing this

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

    Hell yeah this tutorial rocks!

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

    Simple and effective tutorial!

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

    Really helped a lot!!
    Thanks

  • @Player-we3nq
    @Player-we3nq 2 года назад

    Thanks, this fix my problem.
    Appreciate it.

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

    This was helpful! Thank you very much sir!

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

    Extremely clear and concise pllease bring a tutorial on the error i am facing win32 not identified

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

    Thank uu soo much i tried this a lot of times but through your it's 👍 done.... 😁

  • @nayeem1400
    @nayeem1400 2 года назад +2

    In my pc msys2 download but not opening what should i do?

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

    Careful, when I compile anything using mingw from this, the linked program lights up like a christmas tree in virustotal (20+ detentions), I made a few other programs to test it to make sure it wasn't a false positive, however the results stayed the same.

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

    Excelente amigo.. muchas gracias por tu video. Ahi solucione que no me andaba ningun programa en C en Visual Studio Code.

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

    Can you please make a video on how to use OpenGL (GLEW, FreeFLUT, GLFW) with VS Code?
    Also, How do i install MinGW-w32 Packages?

  • @user-hy1se8js4u
    @user-hy1se8js4u Год назад

    thank u it was litrelaly a problem that you just solved

  • @xtrea-ms6512
    @xtrea-ms6512 2 года назад

    Thank you so much man!! May God makes you billionaire 💰❤❤❤

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

    thanks this really helped me

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

    It is necessary to install msys2

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

    Thank You.... Helped a lot🙏🏻🙏🏻

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

    this is very, very useful! thanks a lot

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

    Thank you sir , thank you sooo much 🥰🥰🥰🥰

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

    This was very helpful thank you

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

    Another easier way to get started is to simply download TDM GCC.will automatically setup system PATH for you

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

    Very good tutorial, thx from Russia

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

    Thanks you kind sir its was easy to understand and install....

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

    Thank you very much!!!!

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

    Thank you. Your video help me so much

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

    THANKYOU SO MUCH!!!!!!!!!!!!

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

    Thankyou so much, it's a great tutorial.
    [Arigato]

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

    Good explanation!

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

    love you sir thank you

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

    This video's is realy very helpfull thankyou sir

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

    I did everything, but when I open VSCode, this msg comes (Your Code installation appears to be corrupt. Please reinstall.). What should I do?

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

    on the MSYS2 terminal it just takes too long and at the end it gives me an error

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

    Legend

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

    thanks you really helped me!!!

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

    Pls anyone help me....at last when terminal is running it shows cannot open output file main.exe: permission denied
    Anyone know how to solve it

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

    I'm having issues and I'm up to 3 hours into it.
    1.starting with running the gcc command in the installer for MSYS2
    2. it didn't install any files in the
    \msys64\mingw64\bin
    3.lastly says
    'g++' is not recognized as an internal or external command,
    operable program or batch file.
    when I run the main.cpp file which is expected with issues 1-2. Any suggestions

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

    when u entered the tool chain command at 4:20 u had 2 default enters meanwhile i only got one why is that??

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

    Thank You!!!

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

    its not showing me pacman syu...instead i have "You will probably want to install some tools like the mingw-w64 GCC to start compiling"

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

      mine also if any solution found please help me

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

    Thank you very much keep it on ....♡♡♡♡

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

    Love you brooooooooo

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

    Thank you sir it works

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

    thanks!

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

    Thank you so much!

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

    ty for your help

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

    This runs the code in Windows Powershell not MSys2. If you try to use the GTK library it fail to compile.

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

    2:49 wow, how was the window dimension shown there (in the left side)??
    8:01 how are u pasting that data?? i mean where did u copy that which allow u to paste sequentially?? i always wanted to do that 🤔

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

      update: for the window dimension overlay: it is msys2 cmd dialog's inbuilt property

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

      ​@@yash1152 It looks like I paste sequentially because I cut the video during the instants when I copy the texte. Also I noticed that you are posting a lot of questions and answers. Please take your time to watch the entire video. Then if you still have questions, you can ask them in one single comment and I will try to reply if I know the answer.

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

      > _Please take your time to watch the entire video_
      @@BoostMyTool hi, i have watched the complete video, but i watch 2-3 times, and follow it bit by bit each time. thanks for reading the questions. i hope my commenting doesnt disturb u though 😅. i have this weird habbit of documenting things for myself for later in the video comments.

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

    Simply Great