How To Install MinGW 64 Bit Windows 7 10 11 C C++ Fix File Has Been Downloaded Incorrectly! Error

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this tutorial i'm going to show you the fastest way of installing mean gw64 on windows 10. so the first thing you want to do is go to download mingw probably the very first result will be the official page go ahead and go to downloads and from this list you want to for windows 10 you want to locate mingw w64 builds it will lead you to the sourceforge link go ahead and wait for a couple seconds and you will see that the file has finished downloading go ahead and just click the next button and then do it again so on this screen what you want to do is just type c mingw you don't have to browse just type it in directly in this box go to next and so a lot of people will get this error the file has been downloaded incorrectly now if you don't see this error just continue with the installation as you usually would and that should do it but if you see this error i'm going to show you how to install mean gw in a slightly different way but it's going to be exactly the same thing i want you to find this link in the description of this video and go ahead and click on that go to that link and go ahead scroll down a little and you will see this file here so click on that and we're gonna download it in just a few seconds so now that you have this file because it's a zip file we have to extract its contents first so i'm gonna go show it in folder now go ahead and right click on the file that was downloaded and click on extract here it's gonna do some work you'll notice that it will be extracted into mingw64 folder go ahead and let's just check that it's there now right click on the folder and copy and then go to your c drive and go ahead and just paste it here so basically we're doing exactly the same thing that the installer would have done but because we had an error we will simply brute force copy and paste the folder into installation directory and the whole point is to have the mean gw64 on our c drive once we get it there all we have to do is set up environment variables and i'm going to show you how to do that in the next step now go to your windows desktop and go to the start button and simply start typing in environment variables you'll see this first search results so go ahead and click on that now on this window go to environment variables button go to the second part here at the bottom and scroll down to where it says path select that and click edit now go to the bottom and go to the new button and type nc flash mingw64 which was the folder where we installed it click ok or you might in some cases also create another one and type in mingw64 bin so the first one is enough but just to make sure that we have both of them click ok and click ok again and click ok now at this point we have successfully installed and configured mean gw64 on our system so to make sure that it works go to start button and type cmd and hit enter so what happened here we just opened the command line in windows and to verify that we have mingw actually installed and it's functional on our system go ahead and type gcc dash dash version and hit enter and as you can see if this text here appears showing you which version of gcc you have you have successfully installed mingw on your system now to test if we can compile our c program i open notepad and i'm going to paste a quick program here i'm going to go ahead and click save and i'm going to save this file as test dot c and i'm going to save it in min gw64 folder so now i'm going to go back to my command line i'm going to navigate to the folder where i had just saved this file i mean gw64 and i'm going to run the gcc compiler on that file to do that i typed gcc file name which was test.c and i have to specify the o flag with the dash and some kind of an output file name for example output so i'm going to hit enter so that's going to compile our c program in order to run this the gcc compiler actually created output.exe file so in order to run that we can type that here and hit enter and as you can see our program has displayed the message here that we printed out using the printf function in c language
Info
Channel: Ghost Together
Views: 138,819
Rating: undefined out of 5
Keywords:
Id: Zcy981HhGw0
Channel Id: undefined
Length: 5min 32sec (332 seconds)
Published: Mon Apr 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.