Installing MinGW Compiler for VSCode on Win 10 x64

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • Getting MingGW to work on VSCode in 3 steps
    Step 1: Install C/C++ Plugin from Microsoft within VSCode
    marketplace.vi...
    Step 2: Download and unzip MinGW to a desired location
    sourceforge.ne... (pick x86_64-posix-seh)
    mega.nz/file/N...
    Step 3: Add the desired location to the Path environmental variable
    Step 4: Checkout imy2
    Fleetwood Mac - Dreams: • Fleetwood Mac - Dreams...
    Bullet: • IMY2 - Bullet (Officia...

КОМЕНТАРІ • 68

  • @itsmimic007
    @itsmimic007 3 роки тому +4

    I have watched a lot of videos on this. Most of them says Mingw-w64 but they just install Mingw. But yours was truly helpful. Thank you so much for this.

  • @justinalyne9573
    @justinalyne9573 3 роки тому +6

    I just wanna say thank you so much bc currently as a CS student during COVID it is a lot harder to figure this stuff out on our own. I've spent the past few days trying different things and had no luck. But thanks to your video I was able to finally get it to work and now I'm gonna help out some of my classmates in discord. Thank u SO MUCH!!!!

    • @levdoescode
      @levdoescode  3 роки тому +1

      No problem! I had issues following instructions elsewhere so I knew this needed to be done =)

  • @obscure6187
    @obscure6187 Рік тому +7

    After wasting for 4 hours i finally found the right guy
    Thanks a lot

  • @pranjalupadhyay6683
    @pranjalupadhyay6683 3 роки тому +2

    Thanks bro. initially I was not able to download the mingw but your method actually worked

    • @levdoescode
      @levdoescode  3 роки тому +1

      My pleasure. It took me a good amount of time to figure it out too! Happy coding!

  • @nonisoul
    @nonisoul Рік тому +3

    man, thank you! For teaching how to download the compiler with out msys with it's long story, you saved lots of hours

    • @levdoescode
      @levdoescode  Рік тому +2

      I had to do the video for all of us who had issues with the installation. Thanks for stopping by.

  • @enthii
    @enthii Рік тому +3

    OH MY GOD IT WORKED
    i spent like 3 hours trying to figure this out myself you helped out alot

  • @AJ-hu4ig
    @AJ-hu4ig Рік тому +1

    This worked! I thought my VS Code was broken until I found your video. Thank you!

    • @levdoescode
      @levdoescode  Рік тому

      No problem. I'm glad I can help. Remember you can take a free C++ course (anywhere in youtube) and udemy www.udemy.com/course/free-learn-c-tutorial-beginners/

  • @wijaya.s507
    @wijaya.s507 Місяць тому

    thank you so much for the video sirr, it's very help full

  • @shashangkakashyap6346
    @shashangkakashyap6346 Рік тому +1

    I didn't close my VS Code and was checking why it is giving me error has this header file not found etc. 😂. Thanks for saving me from wasting more time.

    • @levdoescode
      @levdoescode  Рік тому

      I simple mistake to make and one I shared the solution. Keep coding! ⌨

    • @zackdro3599
      @zackdro3599 20 днів тому

      It keeps saying my header files are missing!!

  • @sir_savage5240
    @sir_savage5240 2 роки тому +4

    I followed your steps in the guide but when I run any code the following pops up: 'g++' is not recognized as an internal or external command,
    operable program or batch file. Do you know how to help?

    • @levdoescode
      @levdoescode  2 роки тому +1

      You want to be sure the PATH settings is working

    • @levdoescode
      @levdoescode  2 роки тому +1

      You also have to restart VSCode as I indicate int he video

    • @sir_savage5240
      @sir_savage5240 2 роки тому +1

      @@levdoescode Yep I tried that, it worked now! thank you!

  • @peshotod
    @peshotod 7 місяців тому

    Finally, a developer to explain it properly.Thank you.Great job.

  • @KiM-jf6hs
    @KiM-jf6hs 2 роки тому +2

    Your video really helped me a lot...most of the video on youtube use Mingw installer & Msys2 installer...It is great if you can teach how to setup the configuration for debugging 😃

    • @levdoescode
      @levdoescode  2 роки тому +2

      The same happened to me and I knew a video like this was needed

  • @dcningbo
    @dcningbo 3 роки тому +2

    Thanks Lev, very informative!

  • @diogobraga2134
    @diogobraga2134 2 роки тому +2

    You are a star mate. Thanks

  • @asmaa6661
    @asmaa6661 2 роки тому +2

    Thanks, man it was really helpful I tried another tutorials but my problem solved when I so your video 😅.

  • @wraith3838
    @wraith3838 9 місяців тому +1

    Thank you

  • @megandlima8076
    @megandlima8076 Рік тому +1

    Thank you so much!!

  • @khalilgl2448
    @khalilgl2448 2 роки тому +1

    Thank u so much broo 🙏🙏💪

  • @zerolyrics3466
    @zerolyrics3466 7 місяців тому

    Really really helpful... I'll like and subscribe you for my own good lol🖤

  • @shadyflash3034
    @shadyflash3034 Рік тому

    Thanks a bunch brother this helped hats off

  • @ivan.vasyukov
    @ivan.vasyukov 3 місяці тому

    ned reference to `WinMain'
    collect2.exe: error: ld returned 1 exit status. What should i do?

  • @delfi7077
    @delfi7077 8 місяців тому

    thanks man, you really saved me

  • @reinuluv
    @reinuluv Місяць тому

    What do I do when the file I downloaded becomes a pdf, do I need to install winrar?

  • @MohamedAhmed-pk4ig
    @MohamedAhmed-pk4ig 3 роки тому +1

    gooooooooooood work

  • @mizbaibnbasher6269
    @mizbaibnbasher6269 Місяць тому

    it's Minimalistic GNU for Windows... NOT "Minimalistic Graphical Interface for Windows"

  • @user-si2hp9rr1i
    @user-si2hp9rr1i 6 місяців тому

    hi, i downloaded MinGW from sourceforge using same link, but there is no BIN folder in directory, cannot find gcc.exe
    Please help

    • @user-yv2hb9zx2l
      @user-yv2hb9zx2l 6 місяців тому

      you have to pick pick x86_64-posix-seh

  • @peshotod
    @peshotod 7 місяців тому

    And this is 2018 version as it says.There should be updated version.Do you know where to download the zip from?

  • @khaixa_
    @khaixa_ Рік тому

    thank you so much!

  • @thetoozaw3840
    @thetoozaw3840 Рік тому

    Thank You So Much❤❤

  • @endangeredcreator5050
    @endangeredcreator5050 3 роки тому +1

    it shows environment variables is large while adding to path

    • @levdoescode
      @levdoescode  3 роки тому

      Do you mean windows sends a warning and doesn't let you add it?

    • @adihereonyt
      @adihereonyt 3 місяці тому

      ​@@levdoescode YES SAME FOR ME- PLEASE HELP!! it says "the environment variable is too large. This dialog allows setting values up to 2047 characters long" what do I do?

    • @levdoescode
      @levdoescode  3 місяці тому

      @@adihereonyt It Seems you're typing/pasting the wrong text in the path. The path should be short

  • @MahmoudEsmailProTech
    @MahmoudEsmailProTech Рік тому

    Thanks A Lot Bro 🥰🥰🥰🥰🥰🥰

  • @invention2021
    @invention2021 9 місяців тому

    thx!!!!!!

  • @jojobobpants
    @jojobobpants Рік тому

    why do I have to put it in 2x so it sounds normal

  • @XdEnder_
    @XdEnder_ 7 місяців тому

    is it possible to install the mingw compiler for vscode portable mode?, i already have mingw compiler on my main computer but now i have installed the vs code portable mode bc i think my school doesnt have that and we usually use something else than vs code but i already have vs code portable on my usb stick, but is it possible to get that compiler for my usb stick?

    • @levdoescode
      @levdoescode  5 місяців тому +1

      You definitely can, you just have to use the full path to the g++.exe instead of the short name that the path configures.
      "C:\my_directory\spaced directory\g++.exe" main.cpp

  • @SavlatZayniyev
    @SavlatZayniyev Рік тому

    Nice !

  • @aymanelnoty999
    @aymanelnoty999 Рік тому

    thanks u mate

  • @user-bn2fp7bb2c
    @user-bn2fp7bb2c Рік тому

    thanks

  • @edwardmacnab354
    @edwardmacnab354 Рік тому

    why would you want the posix version

    • @levdoescode
      @levdoescode  Рік тому +1

      I do not know the difference, but the other one said win32 so I went for the posix one. If you have information on this, let me know so that I can look it up, test it or add a card with that information 👍

  • @randomjoy9685
    @randomjoy9685 Рік тому

    which is the right file if I need to compile C89?? g== doesnt work

  • @ricasp1663
    @ricasp1663 Рік тому

    4:28

  • @notsophie2083
    @notsophie2083 8 місяців тому

    PS C:\Users\dbi\Desktop\c language> cd "c:\Users\dbi\Desktop\c language\" ; if ($?) { gcc first c -o c:\Users\dbi\Desktop\c language\first c } ; if
    ($?) { .\c:\Users\dbi\Desktop\c language\first c }
    gcc.exe: error: first: No such file or directory
    gcc.exe: error: c: No such file or directory
    gcc.exe: error: language\first: No such file or directory
    gcc.exe: error: c: No such file or directory
    gcc.exe: fatal error: no input files
    compilation terminated.

    • @levdoescode
      @levdoescode  8 місяців тому

      Try placing the mingw64 folder somewhere else, like c:/ and not under users

  • @deko_os
    @deko_os 5 місяців тому

    i need help with somthing do u have discord

    • @levdoescode
      @levdoescode  5 місяців тому

      I hope to be on time.
      My discord user is the same: levdoescode

  • @b3an5j28
    @b3an5j28 Рік тому

    when I typed g++ --version it works, but after trying to compile the cpp file, it says
    g++.exe: error: 1.cpp: No such file or directory
    g++.exe: fatal error: no input files
    compilation terminated.
    and i noticed that my terminal directory is not pointing to my file's folder, how to set the terminal path?
    thanks

    • @levdoescode
      @levdoescode  Рік тому

      Are you using the correct format for calling the application for compiling? I showed it in the video.

  • @spencertan3004
    @spencertan3004 Рік тому

    Thank you so much!

  • @jibcube2774
    @jibcube2774 Рік тому

    when I typed g++ --version it showed "The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program." there's error also in command panel as "'gcc' is not recognized as an internal or external command, operable program or batch file." could you please tell me how to solve this problem? Thank you

    • @levdoescode
      @levdoescode  Рік тому

      It sounds like you haven't registered g++ in the path environmental variables