Installing MinGW to build C++ Code on Windows

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 497

  • @Goodguy949
    @Goodguy949 10 місяців тому +38

    Thanks Vs code and Mr Tarik for making my life easier. I was trying to configure the compiler from past 2 days. But finally have configured it now. Thank you once more.

  • @tamalmazumder8476
    @tamalmazumder8476 2 місяці тому +22

    No unnecessery talk and straight to the point.....Thank you!!

  • @breaktask7132
    @breaktask7132 7 місяців тому +65

    For newbies, this is the "only video you need to kick start your journey"😁

    • @urmomlolgottem
      @urmomlolgottem 4 місяці тому

      thats not wot ur mom said

    • @kyurious17
      @kyurious17 4 місяці тому +3

      as a "newbie" i confirm this

  • @AstralNomadd
    @AstralNomadd 2 місяці тому +10

    This made my life easier! And everyone who's reading this "Please don't install MinGW by Source Forge, its trash!" (at least for me. it didn't work)

  • @benjamin-v2g9m
    @benjamin-v2g9m 11 місяців тому +55

    I loved the "after you have installed the installer.."

    • @RanMC9918
      @RanMC9918 8 місяців тому +16

      i like "click ok, and click ok, and click ok" 2:17

    • @mousesunset
      @mousesunset 4 місяці тому

      @@RanMC9918 "okay?"

  • @wribbit
    @wribbit 10 місяців тому +7

    Awesome.. concise, with all the info needed to get started. All instructional videos should be like this :)

  • @ChrisP872
    @ChrisP872 10 місяців тому +6

    This video was very clear and easy to follow. Excellent.

  • @AlberDFilms
    @AlberDFilms 17 днів тому +1

    I Was Struggling To Download MinGW And This Video Has Save My Time !!

  • @acesgaming7017
    @acesgaming7017 10 місяців тому +16

    Thank you thank you so much
    I have been trying to set up vs code since 3 days and almost tried 20 times with various methods but couldn't.
    But after watching your video I solved the problem in first trying.

    • @code
      @code  10 місяців тому +7

      Great to hear!

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

      @@code make vs code more fast

  • @seikharishuddin4577
    @seikharishuddin4577 10 місяців тому +6

    Thank you so much man. This video was incredibly helpful. Its a relief to able to use VS for C

  • @SinisterStudyStream-we4rw
    @SinisterStudyStream-we4rw 10 місяців тому +4

    Thank you so much man. This video was incredibly helpful

  • @aashirafiq5168
    @aashirafiq5168 7 місяців тому +1

    Thank you vs code ;
    the only video on yt , that solved the problem .
    the part at 2:45 solved the issue that was causing hinderance in the output,
    thanks once again .

  • @vikrantkale7515
    @vikrantkale7515 Рік тому +17

    The "Option of C/C++ :Select IntelliSense Configuration" and C related options although I have followed the steps you mentioned thoroughly.Can you please tell me any alteration or alternative step for Verification of Compiler Installation ?

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

      If you are not seeing the compiler in the drop-down from the command, it is likely that you need to revisit the steps to correctly set your path environment variable. Make sure it is pointing to the proper “bin” folder

    • @enricoschievano621
      @enricoschievano621 11 місяців тому +1

      Try checking if you are in a Trusted window or in restricted mode, this works only in trusted window.

    • @ZeusDaBoy
      @ZeusDaBoy 11 місяців тому

      @@tarik_hello hey i have a doubt, i am putting the compiler in my local disk D drive for space management, and i put the path there, i also put the folder for vscode as if my project folder there but it isnt working? any help

    • @tarik_hello
      @tarik_hello 11 місяців тому +1

      @@ZeusDaBoy This is most likely not an issue with our extension but rather VS Code. If VS Code and your files do not reside on the same drive you will not be able to access your files. I would suggest you store compilers on your C Drive

    • @Kanak_Bodkhe
      @Kanak_Bodkhe 11 місяців тому

      try revisiting those steps dude, mine mistake was, i edited the path without choosing the account, so go on search and type edit variable for your account then follow those steps told in video on how to edit path variable, worked for me tbh

  • @belenrb
    @belenrb 2 місяці тому

    Thank you so much! I watched a few videos on this and none of them worked.
    This video was very easy to follow, and it worked perfectly! ❤

  • @sadiqshaikh8715
    @sadiqshaikh8715 6 місяців тому

    Thank you so much, after being stuck with this for 5 hours and 69420 errors the installer gave me, I can't express how grateful I am to this tutorial

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

      Glad this video could help you out!

  • @sahilundirwade2825
    @sahilundirwade2825 8 місяців тому +1

    Thanks a lot Mr. Tarik and the VS Code community! This video helped a lot.😃

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

    This is a miracle, a video that you can find all info doing in real time

  • @pchandrahas
    @pchandrahas 11 місяців тому +10

    Not able to find the selections what you showed on for 'Edit Environment selection' .. I am already using VsCode for Python.. Do I need to change anything else?

    • @anushkaa_.7
      @anushkaa_.7 10 місяців тому

      Search edit environment in search bar... you'll get it

    • @ayankhn1492
      @ayankhn1492 25 днів тому

      Bro did you find you problem solution? can you share it with me I am facing same problem..

  • @mrobinson
    @mrobinson Рік тому +8

    Thank you all SO much! I needed this!

  • @JayantTodmal
    @JayantTodmal 2 місяці тому

    Your video has made it easier to start with vscode. Thank you so much man.

    • @code
      @code  2 місяці тому

      No problem! Glad you found it helpful!

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

      @@code what about the people facing difficulties

  • @AhmedAbdullah-qf8ou
    @AhmedAbdullah-qf8ou 10 місяців тому +17

    At 2:24 in the command prompt it shows that (gcc is not recognized as an internal or external command ) , what should I Do now ?

    • @tarik_hello
      @tarik_hello 10 місяців тому +3

      Please revisit the environment variable steps and if that doesn’t work try installing the compiler again

    • @pumpkin1409
      @pumpkin1409 3 місяці тому +3

      If anyone still has a problem with this one, make sure you choose "Edit environment variables for your ACCOUNT", not system.

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

      @@pumpkin1409 where is that one please ?

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

      @AhmedAbdullah-qf8ou same here

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

      Anyone got this one right as I'm getting the same problem 😅

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

    Thank you for making this simple and straight forward

  • @tarik_hello
    @tarik_hello Рік тому +50

    Here is the command for installing MinGW in MSYS2 for anyone who missed it: pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain

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

      Can't copy😢

    • @am99.99
      @am99.99 Рік тому +5

      @@omnii630 that's right bro, you need to select whole command and slip it to directly that position. you cannot paste there.

    • @moist5339
      @moist5339 Рік тому +10

      it doesn't work, it says the pacman command does not exist.

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

      @@moist5339try running this command before that one -> “pacman -Syu”
      It worked for me

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

      Yes what should we do now​@moist5339

  • @PrateekAgrawal-tv3og
    @PrateekAgrawal-tv3og 7 місяців тому

    I had been stuck on it for 2 years, finally landed on this video and my problem is solved. Damn!
    Thanks a lot!!

  • @christiandante4403
    @christiandante4403 6 місяців тому +2

    this video was helpful in many ways😅😅💯

    • @sadiqshaikh8715
      @sadiqshaikh8715 6 місяців тому

      were you able to install gcc successfully?
      I am having a lot of trouble

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

      Glad this video could help you out!

  • @NirAuris
    @NirAuris 10 місяців тому +8

    After I did this no matter what I did it showed "The preLaunchTask 'C/C++: g++.exe build active file' terminated with exit code -1", what do I do?

    • @tarik_hello
      @tarik_hello 10 місяців тому

      This sounds like a compilation issue and not an issue with compiler installation. Could you provide more context like the full error message and type of project you are building?

    • @tanusharma4467
      @tanusharma4467 10 місяців тому

      Same issue...when i try to run the code it says " The prelaunch Task 'C/C++:gcc.exe build active file' terminated with code -1.
      And the options to choose are "debug anyway" , "show errors" and "abort" .

    • @NirAuris
      @NirAuris 10 місяців тому

      @@tarik_hello That is the full error message. And I doubt it is the projects fault. I made a hello world project and got the same problem

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

      I have the same problem, did you find the solution mby?

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

      @@nejcjamsek9806 make sure that if you are running a c++ file, you are using the g++ compiler, not gcc

  • @ltmr_lyricals
    @ltmr_lyricals 11 місяців тому +3

    Thank you mannhhh... Now let me make some programs and projects😉

    • @tarik_hello
      @tarik_hello 11 місяців тому +1

      Glad it helped! Be sure to like and subscribe!

  • @yhanadvincula6516
    @yhanadvincula6516 4 місяці тому

    Thank you very much, just downloaded my very first step in coding

  • @บุณยาพรชัยมงคลทรัพย์

    This video save my life, thx u so much.

    • @tarik_hello
      @tarik_hello 11 місяців тому +2

      I’m glad it helped! Be sure to like and subscribe!

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

    Excellent!!!
    Do a video in creating a software start to finish but not half ass and do show everything that's needed from setting up the coding software to creating a UI and show how they all talk to each other

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

      Good idea - a good starting point for you might be our Getting Started with C++ video (ua-cam.com/video/qeEcV6u1kV4/v-deo.html), which explains how to set up the environment, install a compiler, and then you run and debug a piece of code. Otherwise, we are always looking for more video ideas that would be helpful to you!

  • @stith_pragya
    @stith_pragya 7 місяців тому +1

    Thank You So Much for this wonderful video............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @vaibhavsingh6339
    @vaibhavsingh6339 7 місяців тому +1

    this helped me in a sticky situation. thanks man

  • @nghienmeochsgame
    @nghienmeochsgame 2 місяці тому

    Thank you so much for the helpful guide!

  • @PhatVu-u1n
    @PhatVu-u1n 10 місяців тому +2

    Thanks for the instructions👍

  • @Cvesterholm
    @Cvesterholm 2 місяці тому

    Awesome instructions! Thanks! // Newcomeer to C/C++

  • @kellynavarro2669
    @kellynavarro2669 4 місяці тому

    I actually loved your video very specific to the point. You are awesome at explaining things, thank you!
    I had to follow you on instagram & subscribed to your YT!

  • @blackironseamus
    @blackironseamus 10 місяців тому +2

    Thanks, this helped a lot!

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

    Thanks for the amazing tutorial! It works for C too :)

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

    Thank you Tarik, this was helpful.

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

    thank you so much for the support

  • @Student_2028
    @Student_2028 4 місяці тому +7

    it's showing pacman-S--needed command not found . what to do?

    • @873carol
      @873carol 27 днів тому

      pacman -S mingw-w64-ucrt-x86_64-gcc

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

    Thank you so much, this saved my life

  • @code-with-vivek
    @code-with-vivek 4 місяці тому

    great tutorial...way to go for mingw c++ coding...thank you...

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

    Thank you so much, finally working

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

    thank you you really made this easier for me

  • @AkbarHossain-o4u
    @AkbarHossain-o4u 7 місяців тому +6

    Sir I am facing a problem in the command prompt, after I type gcc --version it says 'gcc' is not recognized as an internal or external command,
    operable program or batch file.

    • @AntonioVivaldi-si5mr
      @AntonioVivaldi-si5mr 6 місяців тому +1

      im having problems too lol :( was supposed to be easy...

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

      Could you try revisiting the PATH environment variable step? Make sure you are pointing toward the bin folder.

    • @Ikronix007
      @Ikronix007 4 місяці тому

      @@tarik_hello I have done that and still doesn't show up. I have it directed towards the BIN folder.

    • @АнастасияВоронина-щ3ъ
      @АнастасияВоронина-щ3ъ 4 місяці тому +2

      check the folder "bin" . if it's empty running the code pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain in installer can help

    • @AlexKelly-mk8py
      @AlexKelly-mk8py Місяць тому

      Mine says the compiler is there, but visual studio won't compile the code.

  • @yuktabhardwaj2210
    @yuktabhardwaj2210 9 місяців тому +2

    Hey! I followed all the steps exactly shown here and everything was fine until the last step where I couldn't find this step @2:50... Please help

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

      Please make sure you have the extension installed and you are looking at an active .cpp file

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

    Do I need to Edit the "Path" of the System variables as well? 1:55

    • @tarik_hello
      @tarik_hello 4 місяці тому

      Only the Path environment variable. Make sure you select the bin folder of the correct compiler as the path.

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

    inally i was able to this by my self thank u blud

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

      Glad it helped 👌🏿

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

      i have a question its not always compiling using the gcc i should always change it in the C/C++: Select IntelliSense Configuration...
      recently used G} how can i make it a defualt compiler
      @@tarik_hello

  • @daiakialv1580
    @daiakialv1580 7 місяців тому +3

    Dunno how but i managed to turn a 3:07 minutes video into a 20 minutes task. wish me luck guys, trying to learn by myself

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

      You got this!

    • @Aiser77
      @Aiser77 4 місяці тому +1

      You got this champ
      Wish me luck too ❤

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

    worked well, make sure to let the command prompt download all dependencies

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

    i click three time and then start but easy and very straigt forward. thanks one again

  • @nvamsikrishna7033
    @nvamsikrishna7033 11 місяців тому +3

    The "Option of C/C++ :Select IntelliSense Configuration" is not shown in the drop down.pls help

    • @tarik_hello
      @tarik_hello 11 місяців тому +1

      This is likely due to a couple of things:
      1. You need to have a .cpp file open to access the extension commands
      2. You need to be acting within a workspace folder and not in single file mode

    • @abdurrahmanalyajouri7992
      @abdurrahmanalyajouri7992 10 місяців тому +4

      type > for it to show up

    • @latexi5581
      @latexi5581 4 місяці тому

      @@abdurrahmanalyajouri7992 Thank you

  • @KaranKumar-e5w7u
    @KaranKumar-e5w7u Місяць тому

    Thanks it worked and was easy to set up

  • @Kingofthewinter
    @Kingofthewinter 2 місяці тому

    Thank you very much for this video!

    • @code
      @code  2 місяці тому

      You're very welcome!

  • @rishabh-z4x
    @rishabh-z4x 10 місяців тому +3

    after giving the command , it is not prompting.
    In this case , what should i do ...please tell me

    • @tarik_hello
      @tarik_hello 10 місяців тому +1

      Could you please explain more about your situation? If your VS Code instance cannot locate the compiler you may need to revisit the environment variable step.

  • @soundtuition
    @soundtuition 2 місяці тому

    Top video. Thank you!

  • @siddharthjain6629
    @siddharthjain6629 6 місяців тому

    What a Beautiful Explanation

  • @eyadmohamed4908
    @eyadmohamed4908 Рік тому +5

    It failed to retrieve certain files while installing the MySYS

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

      Please revisit the installation, you may need to re-run with admin privileges

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

      @@tarik_hello i installed it but now vs code crashes everytime I use a .cpp extension for any file

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

    Thank you very much. Very helpful!

  • @Alberto_Cavalcante
    @Alberto_Cavalcante 6 місяців тому

    Helpful. Thanks for sharing!

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

      Thanks for watching!

  • @vaishnavipatil4164
    @vaishnavipatil4164 2 місяці тому

    Thank you it was very useful

  • @Overseer190
    @Overseer190 Місяць тому +1

    2:20 gcc --version still not working even after doing all of the steps

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

      Yeah even mine

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

      me too, i tried 10 times up till now and finally work :v

  • @ChafieSifi
    @ChafieSifi 7 місяців тому +3

    sir,i followed all your steps but when i used command > for checking if i had the compiler so i didnt find it (no things showed)

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

      same here if you found the solution please help me too

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

      This is probably due to the compiler not being correctly set in your path environment variable, could you try revisiting that step?

  • @nm_9_
    @nm_9_ 11 місяців тому +1

    underrated video!

    • @tarik_hello
      @tarik_hello 11 місяців тому

      I am glad the video helped! Feel free to like and subscribe as well!

  • @acid_ibis4214
    @acid_ibis4214 10 місяців тому +1

    I dont have an intellisense option.
    How do you get your command palatte to say search and have a magnifying glass?
    I just installed vs studio and it says unentitled workspace.

    • @tarik_hello
      @tarik_hello 10 місяців тому

      Make sure you have a folder open with the files you want to work with. You can do this by using “Open Folder” under the file menu. To use the command pallete, use the ctrl+Shift+P hot key. To get access to the command from the video you must have an active .cpp file open

    • @acid_ibis4214
      @acid_ibis4214 10 місяців тому

      @@tarik_hello It turned out I didn't have a cpp properties or something folder so I made it by hand then it worked

  • @blade8424
    @blade8424 4 місяці тому +1

    Did everything you said in the video trying to get C working with the compiler in visual code. Keep getting in command prompt
    gcc is not recognized as an internal or external command,
    operable program or batch file. How do I fix this??? Got in the right path etc.

    • @wasdaq2293
      @wasdaq2293 4 місяці тому +1

      If you havent, try running the command prompt as an administrator.

    • @Samrtfirdeg
      @Samrtfirdeg 4 місяці тому

      @@wasdaq2293 OMG you are life saver. Had the same issue and no matter what i did my command prompt did not recognise but after running it as an administrator it works

    • @АнастасияВоронина-щ3ъ
      @АнастасияВоронина-щ3ъ 4 місяці тому

      check the folder "bin". if it's empty - try to run the command pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain in installer again

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

    Thanks I was having trouble setting it up

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

      I am glad the video helped you out! Be sure to like and subscribe!

    • @am99.99
      @am99.99 Рік тому +1

      i followed every single step, but my bin folder is empty 😣😣😫 why?????????????? ans please.

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

      @@am99.99 Open it again, define the path variable and click ok, this should apply the settings.

    • @am99.99
      @am99.99 Рік тому +1

      @zeebicse9426 I'll try,thx for response

    • @am99.99
      @am99.99 Рік тому +1

      @zeebicse9426 I tried another way but still.....bro done. Thank you 🤝

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

    I'm having issues running C++ code that uses LAPACK? Should I download necessary LAPACK libraries/packages from MSYS2 and then save the corresponding .dll files in the same directory as the 'path variable' (i.e., the same directory as the compiler)?

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

      While I am unfamiliar with LAPACK, the tutorial specifically mentions how to setup a compiler from MinGW. If the compiler you are trying to setup is not well known, you may need to have the extension detect it manually using the “Select IntelliSense Configuration” command as VS Code may not recognize it as a valid compiler. Could you please provide more information about LAPACK?

  • @romania-n6q
    @romania-n6q 7 місяців тому +1

    perfect now i can start my journey of hard coding in cpp

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

    01:32 error: invalid option: '--clean' and '--sysupgrade' may not be used together

  • @shottoisaev4669
    @shottoisaev4669 11 місяців тому +1

    Thank you very much!)

    • @tarik_hello
      @tarik_hello 11 місяців тому +1

      Thanks for watching! Be sure to like and subscribe!

  • @olenkavasylko
    @olenkavasylko 4 місяці тому +1

    What should i di if i can not open edit environment variables for your account in windows search bar?

  • @VpnO-eo7op
    @VpnO-eo7op 2 місяці тому

    thanks for explanation
    i checked the steps several times but i have a small problem
    i cant find " select intellisense configuration.." in command palette ?
    what's the problem ?
    (gcc ,g++ and gdb have been installed correctly according to cmd bcz i can find their version and related info)

  • @subhadradas4896
    @subhadradas4896 Місяць тому +1

    Why does it stop at , running post transaction hooks
    Updating the info directory file......

  • @Code_Cosmoss
    @Code_Cosmoss 2 місяці тому

    THANK YOU SO MUCH❤❤❤❤

  • @lightbombs
    @lightbombs 3 місяці тому +2

    1:27 there shouldnt be a space like in the video between -w64 -ucrt

  • @JDJHB117
    @JDJHB117 8 місяців тому +1

    Hey there I followed the guide exactly as you state but when I go to run coding, I get this error code. The preLaunchTask 'C/C+ +:gcc.exe build active file' terminated with exit code -1. Environmental Variable is also set up to C:\msys64\ucrt64\bin. When I run the cmmd prompt g++ --version I get no error codes either. Any ideas what could be going on ?

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

      It sounds like you are using the gcc compiler to run C++ code. You want to use the g++ computer instead. The gcc compiler is for c code

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

      @@tarik_hello Thanks for responding, I was able to set up the compiler and run code without issues. One thing I have to ask is why nothing is showing up in the Output when i run code? It only shows up under the terminal when I run my code. I remember before when I would run a file it would run it in Output but now its in terminal. Is this normal? How can I fix it?
      Edit: I am dumb I had C/C++ when running the code instead of just running the code, also unchecked run in terminal, and installed Code Runner extension.

    • @tarik_hello
      @tarik_hello 8 місяців тому +1

      @@JDJHB117 I am glad you were able to fix your issue!

  • @Solty57
    @Solty57 11 місяців тому +1

    hello I download and follow all instructions but when I want to see if there is some memory leak by using -fsanitize=address it didn't work and it say "It cannot be find" so is there an other command or something else to resolve my problem? thanks

    • @tarik_hello
      @tarik_hello 11 місяців тому

      I would advise you to look into the description of this video and explain your issue in detail to the team's issue submission page.

  • @karimaouadi9875
    @karimaouadi9875 24 дні тому

    thank you Tarik, but can you help me why my mingw-w64 for windows is not working for me

  • @jarviisss
    @jarviisss Місяць тому +1

    after this "-S --needed base-devel mingw-w64-ucrt-x86_64-toolchain" I have a "-bash: -S: command not found" what should i do&

    • @873carol
      @873carol 27 днів тому

      pacman -S mingw-w64-ucrt-x86_64-gcc

    • @puneet7753
      @puneet7753 6 днів тому

      @@873carol thanks bro

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

    At 1:45 it did not close auto matically so i just closed it and in the cmd tab it says it did not recognized

  • @jeremygunawan7285
    @jeremygunawan7285 29 днів тому

    I have a problem sir, i used to execute program that using mathematic function. And the program error -1. But the other program still working, how do i fix it?

  • @AmeyawEmmanuelKakari
    @AmeyawEmmanuelKakari 7 місяців тому +1

    my version is 6.3.0 is that a good thing or I should update it. If I should, how do I do that?

  • @asiis181
    @asiis181 4 місяці тому +2

    Awesome but little bit confusing for newbies.. it looks like you skipped some parts ... plz make sure you can explain each step clearly

  • @g4541gf
    @g4541gf 3 місяці тому +2

    finally someone who isnt a pajjet scammer indian

  • @tejalverma6826
    @tejalverma6826 10 місяців тому +1

    Thank you!!

  • @jakesmedley965
    @jakesmedley965 10 місяців тому +2

    it worked for a day or two then it keeps saying error with the file not existing

    • @tarik_hello
      @tarik_hello 10 місяців тому

      Could you provide more context? Are you not able to open a .cpp file?

    • @빼리꼬따72
      @빼리꼬따72 5 місяців тому

      Exactly same bro😢😢😢😢

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

    I can't get the last step to work like the video does, although I've been able to compile and execute via shell. What should I do....

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

      reset vscode json!!!

  • @clubs0da
    @clubs0da 2 місяці тому

    Did he click 'bin' INSIDE ucrt64? Or click ucrt64 like he said in the video? He says and shows two different things....

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

    Thanks for helping 😊

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

    'gcc' is not recognized as an internal or external command,
    operable program or batch file.
    i don't what should i do
    2:32

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

      help me guys

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

      Please revisit the step where you set your PATH environment variable

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

      there are two places where you are able to add PATH. firstly that is shown in the video, 1:57 , User variables for [user] , below that , System Variables is given. In that system variables, PATH is also mentioned. You have to add the PATH there also similar to the process mentioned for above "User variables for [user]".

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

    I got to the last step and the Use gcc.exe option appears after running Select IntelliSense Configuration but when I run the code is says: “file format not recognized; treating as linker script”. I double checked the path and it has the correct bin file.

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

      This sounds like a configuration issue, please take a look at our documentation page or video about running your C++ code. This video is just for getting your compiler

  • @honourable8816
    @honourable8816 10 місяців тому +1

    After pressing 'y' (5/58) files downloaded but then error occured (problem: unable to get local issuer certificate)

    • @tarik_hello
      @tarik_hello 10 місяців тому +1

      I believe this is a permission issue, try re-running the compiler with admin privileges.

    • @honourable8816
      @honourable8816 10 місяців тому

      Too many mgw icons in start menu 🫨

    • @honourable8816
      @honourable8816 10 місяців тому +1

      ​@@tarik_hellostill the same error😢

  • @愚安-v7k
    @愚安-v7k 3 місяці тому

    thanks very helpful very powerful

  • @tahirbaba2074
    @tahirbaba2074 21 день тому

    I did every step clearfully but it still its showing gcc is not recognised as an internal or external command. Need help

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

    my command prompt isnt picking up gcc and says " ' gcc' is not recognized as an internal or external command, operable or batch file."
    how do i fix this?

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

      hi this also happened to me, have you figured out the solution?

    • @smurfij4212
      @smurfij4212 Рік тому +4

      hey i figured it out! it could be that you selected the msys64's "bin" instead of the ucrt64's "bin" in the edit environment areas section. Hope this helps!

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

      @@smurfij4212Thank you for your suggestion! I would second this advice

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

      @@smurfij4212 thank you so much! im pretty sure this was my issue :)

  • @AkiroJanabon
    @AkiroJanabon 2 місяці тому

    Thanks, VsCode!!!

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

    One question, why not use wsl?

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

      This tutorial is specifically for Windows users who requested a MinGW tutorial but you bring up a good idea for a future tutorial. Thank you!

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

      Actually the question ist, why not use MSVC or clang-cl? Both are way better integrated into the system without extra layers between them?

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

      @@Febbe1That is a great question! While there are many compilers to choose from, MinGW tends to be the most widely used and thus the subject of this tutorial.

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

    So frustrating, none of this works. I follow the steps to the letter, but after the pathing step, nothing is pathed correctly. using the gcc --version command in command prompt shows that msys2 isn't being used at all, and it results in the compiler being inactive no matter what I do

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

      Please make sure you are pointing toward the bin folder specifically; this is an issue a lot of people are running into.

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

      @@tarik_hello I have the same problem and I am pointed to that bin folder. You keep giving the same answer to people with the same problem that doesn't help.

    • @windy6191
      @windy6191 4 місяці тому

      make sure you edit the Path in "System variables" at the bottom too

    • @АнастасияВоронина-щ3ъ
      @АнастасияВоронина-щ3ъ 4 місяці тому

      @@tibetje226 make sure the folder "bin" is not empty. mine was empty and after fixing it everything worked out.