How to Install MinGW (MSYS2) and Run C, C++ program in Microsoft Visual Studio( VS Code)|Ada Code|

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

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

  • @hardik_30
    @hardik_30 2 года назад +22

    Can't tell how thankful I'm for this tutorial. Even the official website of msys2 was full of nonsense in installation steps but this tutorial saved the day!!!

  • @JunaidAhmad-x4p
    @JunaidAhmad-x4p Год назад +1

    To honest i was mad about the error since 12 hours and after watching your video and followed step by step instructions now i am happy

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

    I've been up the past night installing MSYS2 and Visual Studio Code trying to get the paths for GCC and G++ configured on windows 11 its been a nightmare. So I come across your video tonight . And in less then 10 minutes of your video all my problems where solved. Your such a Great Teacher thanks so much.

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

      I been through the same problem around 4 hours approximately but i think it is the solution

  • @radamesrodriguesneto4505
    @radamesrodriguesneto4505 2 года назад +21

    Oh my God, you are such a wonderful teacher, thank you so much! I literally spent an entire evening trying to add C++ on vs code, tried many tutorials and blog posts as well, and to be honest, nothing worked. I got frustrated and give a break, after some hours I just came back and followed your tutorial, and voulà it is running as magic hahaha! Thank you once again!

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

      Qaà

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

      Qaà

    • @DK-kp8nw
      @DK-kp8nw Год назад

      Yeah, same here. This was the best tutorial out there. I tried 4 or 5 of them. Excellent job!!!

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

    Your video was clear and easy to follow. When I downloaded the msys2 though i noticed there were some things different, and so the g++ stuff were still not working despite following every step. Thanks still though, your clear step-by-step tutorial calmed me from the hazy instructions my teacher gave.

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

    very very thank you
    I couldn't find a proper guide for mingw 64bit and always the bin folder is empty but this time i saw your video and you provided different steps 😁 now my code is executing in an instant 😊 i troubleshooted for more than a week 😅 again very very thanks for the guide

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

    Thanks you very much 🥺😭 . I have been struggling for 3 days. You solved my problem. Thankyou 😭😭😭

  • @Blitzkrieg-XXIII
    @Blitzkrieg-XXIII 11 месяцев назад +2

    You helped me solve the exact problem I had !! Thank you so much!!

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

    Thanyou so much , i was failed to set up it and switched to dev c++, but hey gorgeous its working now...thanks a lot

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

    realy only this video helped me ......
    i was trying from last 4 days
    there is half knowlegeble video on youtube
    keep it up

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

    fially it works , mingw was showing continuous error to download g++ file now after downloading msys2 it works thank u very much

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

    I try with help of another video 50 times but not happen
    Then i saw ur video then itz done in one time superbb

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

    g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + g++ .\data1.cpp
    + ~~~
    + CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    ???
    11:46

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

    Thank You Soooo....Much Dear Really Very Very Helpful 💞💯❤

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

    I love you my sister, the video that you shared to us is helpful, thanks sister!

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

    Thank you it was really helpful...
    Keep Rocking....

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

    Best video Ever:)

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

    Very helpful I got video when i am stucked and it really help me alot, thanks

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

    Very very infity times thank you ma'am ❤ it works after watching so many videos and I got perfect place where it solved 💯🙌

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

    Thank you, this was more than helpful 😁😁😁😁

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

    thank you your video is very helpful for me i watch many video for this of other youtubers but i could not find any video like this
    keep up 👍👍

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

    Very useful video . Thanks for this video . I have successfully installed c compiler . Keep it up 👍👍

  • @AnasAnsari-zn3qx
    @AnasAnsari-zn3qx Год назад +1

    Thanks a lot mam. You help me through this video 🙌

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

    Thank you so much ,your step by step explanations are very clear and easy to follow.
    Keep the good work !
    Tried many but this was the best !

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

    Thank you so much you explain it very nice and in simple way it helps me alot thank you

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

    awesome mam all your steps works and its compiling.
    great job awesome

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

    Looooved the tutorial , Perfectiiiion !!!!! 👌🏻👌🏻👌🏻👌🏻👌🏻

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

    precise configuration has been made, thumbs up!

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

    Does Msys2/pacman (2013) replace MinGW (2005).. which seems replaced Cywin (1995), or would you use one over another for certain applications?
    I know Docker containers and VMs are a little different.. but PowerShell and WSL2 also seem like a windows way of getting a linux-like terminal. Python's subprocess also seems like it can do everything you would want in a bash environment... or just installing Git , GnuWin32 or unxutils seems to get you the binaries for windows?

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

    You will defenately grow if you l3arn about voice cancellations of chirping bird,nice explanation
    You should include some dialogues to run command again
    It's my advice to run the command 2 to 3 times before moving to next command.
    This video is completely authentic,don't hasitate to uninstall the whole files,if it is not working, in the worst cases also this nethod works and I am the living evidence.

  • @AnilKumar-si4mh
    @AnilKumar-si4mh 2 года назад +2

    I was trying for a long time to code C++ in VS code but saw no video but got no help well i watched your video and followed it step by step and finally my code was run and all the doubts are also cleared 0_0 Thank You so much :)

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

      you should have used visual studio community because it comes with a compiler

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

    heyyy!! i successfully installed g++ , gcc and gdb but in cmd its showing no internal and external command.... what should I do?

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

    Thank you so much. It worked for me

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

    This video helped me a lot. From last one week i was not able to configure the debugging issue in vs code for c. This video is 🔥🔥

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

    How to enable strict compile?
    unused variables throws error () ?

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

    The Best Tutorial Thanks A Lot 🙏😎

  • @ProximaHeisenberg-xg3vz
    @ProximaHeisenberg-xg3vz 5 месяцев назад

    when i enter the cmnd " gdb -- version " it says not found? help-

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

    mam at 10:00 its still not showing the gdb

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

    thanks yrr is helpful for me.....😉😉

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

    After typing .\a.exe : The term '.\a.exe' is not recognized as the name of a cmdlet , function , script file, or operable program. Check the spelling of the name , or if a path was included, verify that path is correct and try again.
    What to do now ?

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

      Try following steps carefully it will solve your problem.

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

      Same problem with me...I tried again and again but can't find where I messed up...my gcc is installed correctly but in the settings when I search code runner I can't find those options that you had in the video...after typing ./a.exe I have the same issue 😫..it hurts😵

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

    Work on my case big thanks 🥰

  • @她是我的在劫难逃
    @她是我的在劫难逃 2 года назад

    Thank you very much for I have been struggling with this problem for a long time and your video helps so much!

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

    works, keep up the good work man

  • @ayanokojikiyotaka1-D
    @ayanokojikiyotaka1-D 2 года назад

    When ia ma opening MSYS2 it's saying that your system is 32bit and it require 64bit

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

    Veryhelpful video 💯💯,thank u so much🙏🙏🙏

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

    Hey Ada, I have a problem at 3:46 where it says "Looking for conflicting files" because my msys terminal doesn't look for them, so I can't download the required files as you said. What should I exactly do?

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

      Well, if anyone else has this problem then it is fine. I followed the rest of the tutorial and it worked just fine. Some things Ada said shouldn't work worked before fixing them as well. It is probably just that your computer somehow took care of it or you did it before

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

      @@abdullahmertozdemir9437 my pc is saying at that time error: failed to prepare transaction ( could not find database)

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

      @@abdullahmertozdemir9437 as she explained , you are not required to respond to those error messages because the process will auto correct and retry on its own.

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

    Very very useful video mam, thank you so much❤😊😊😊😊

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

    You're a visual studio magician!

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

    After installing first package terminal is not showing up on the screen

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

    My gcc --version showing bash gcc command not found

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

      Check once the path set in environment variables for the bin folder location

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

      What do we have to check for??

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

    I have MSYS2 installed and the only way I can get a GTK c program to compile is by opening the mingw64.exe terminal then using this commandline ... gcc `pkg-config --cflags gtk+-3.0` -o gtktest1.exe gtktest1.c `pkg-config --libs gtk+-3.0` ... How do I do this INSIDE VSCode? It keeps using Windows Powershell and can't find GTK in the MSYS2 install and errors.

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

    Wonderful explanation. Thank you so much for your help

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

    Thank you so much😍😍😍😍

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

    Bin shows empty what I can do ? Guide me @ada code

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

    When I type code runner there is not much options available as in the video.. What to di

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

      That step is optional

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

      Check whether you have installed the code runner extension or not... If not first install it and then proceed as said.

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

    gdb command not found its shows this what's th solution for it .

  • @RajPatel-qg1mm
    @RajPatel-qg1mm 2 года назад

    When I run pacman -Su, it's showing there is nothing to do...Is this a problem..?

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

    It says my intelligence mode windows-msvc-x64 is compatible with compiler path, what do I do?

  • @GabrielLopes-bs7cy
    @GabrielLopes-bs7cy 2 года назад

    Thank you, this video help me a lot... !!👋👋👋

  • @vikash-sinhaCS
    @vikash-sinhaCS 2 года назад

    But didi why my code is not running in the output section....it running just only in the terminal.😐😐

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

    I want to download msys 32bit but I can't, can you help me?

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

    Hey it was really helpful.. thnk

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

    Even after downloading it is not working in my vscode

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

    You are GREAT!!! 💥💥💥

  • @21_shivamgajjar73
    @21_shivamgajjar73 Год назад

    this was very helpfulll thank you ☺☺

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

    Thank's a lot it's really really help me 👍

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

    ogm tks you so much, i checked the web and nothing work but you have save me

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

    Ada code you are awesome thank you

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

    Thank you Didi❤️🥰

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

    Thanks Ada Code.

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

    Спасибо большое, Ада, очень помогла. Всё чётко и понятно, даже странно, что у тебя так мало подписчиков.

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

      Я рад слышать, что это помогло вам.

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

      @@adacode9996 I studied java and python languages, but in my institute needs c++. I didn't think that the installation would cause so many problems.

  • @itc-0076
    @itc-0076 7 месяцев назад

    the msys2 installation stays stuck at 50 %

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

    Hy when after clicking y two times that page is getting closed and i am unable to give 2nd initial command

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

      Go to your start menu and scroll down untill you see "MSYS2 64bit", and then click and run "MSYS2 MSYS".

  • @obama-san9177
    @obama-san9177 2 года назад

    after i do the syu step and do type su one it says
    $ pacman -Su
    warning: database file for 'clang32' does not exist (use '-Sy' to download)
    :: Starting core system upgrade...
    there is nothing to do
    :: Starting full system upgrade...
    error: failed to prepare transaction (could not find database)

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

    Thank you so much
    All the best for you

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

    Thanks for it . It's Helpful

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

    I do all process but at the end vs code setting i get different in output section .so i need your more help..so were do i connet with u & share that problem with photo

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

      My Email ID is given in the about section of my channel you can connect to me there.

  • @RR-jn1zc
    @RR-jn1zc 2 года назад

    Thank you .. please make more videos ...

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

    how we install libraries after this ?

  • @AB-od7ug
    @AB-od7ug 2 года назад

    do we need to do this "a and press tab " thing for every code??

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

      No, You have to do this only once.

    • @AB-od7ug
      @AB-od7ug 2 года назад

      @@adacode9996 thank you. done👍

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

    around 12:00 , it seems that the problem was not that you required coderunner , but that you did not use the .exe extension. I'm pretty sure it would run without using coderunner.

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

    hey i am facing issue during downloading and intalling the msys2, edge says this file is not trusted but still i download and after that during installling windowsceen proctect say dont run this program , kindly help

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

      disable the antivirus and windows firewall
      it will fix' the problem

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

      Just say yes and run the program dude

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

    hey, ada. do you can show how to use c file debuger on vs code? followed your tutorial video, it only run c file but can`t debugger.

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

    Thank you very much from Egypt

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

    After give run button it came like "Unable to start debugging.The value of midebuggerPath is invalid"
    What can do?
    Please help me

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

      Try reinstalling or check your gdb location set or not

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

    Good information Thx

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

    I've done all the steps still there is showing no compiler found...?
    pls help me

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

      My Email ID is given in about section of my channel you can connect with me there.

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

    thank you so much. what a calm and cool way of instructions.

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

    i got the following error for g++:
    $ g++ --version
    bash: g++: command not found,
    And the following error for gcc:
    $ gcc --version
    bash: gcc: command not found

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

      you should repeat the installtion of both g++ and gcc it will work then

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

    what a beautiful vioce you have😊😊😊😊

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

    (g++: error: a.cpp: No such file or directory
    g++: fatal error: no input files
    compilation terminated.)
    i got this kind of error while code the c++ program
    so what to do ?
    there is no tab button work and automaticaly a.exe file in my vs code .
    i got ( cc1plus.exe: fatal error: .\a.cpp: No such file or directory
    compilation terminated.) this problem
    please ma'am let me the the solution

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

      Trying following all the steps sequentially do not any of them.

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

      How did you manage to make it work..I have the same issue

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

    Thank you so much it helps me a lot

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

    🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 thank mam bahut jyada wala

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

    All is okay maam....but after pasting it in the particular path , my cmd prompt is not taking that into it...it is not showing the versions at all.....it remains same as it was before changing the env variables..........what can be my problem and what would be its solution pls tell me maam....it is really irritating for me now. pls help me to find its solution...

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

      Follow all steps carefully it will solve your problem and try restarting your system after that.

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

    Mam I got some error in VS Code. I take a screen shot of the error. Please help .

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

    Thank you for helping me

  • @abdulraheem-dr7xs
    @abdulraheem-dr7xs 4 месяца назад

    my bin folder is empty

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

    thanks, best video

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

    at 1:57 you will notice just below the download installer button that there is a sha256 checksum which you did not explain how or why to use. I'm pretty sure that this should not be overlooked , as a rule !

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

    thanks for your help :)