How to install MinGW w64 on Windows 10/11 [2024 Update] MinGW GNU Compiler | C & C++ Programming

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
What's up guys, In this video, I'm gonna  show you how to install MinGW compiler for   C and C plus plus programming. So MinGW basically  is the most popular and the best compiler for   C and C plus plus programming in Windows. So  let's get to the point and install the compiler.   Therefore open your browser and type  in MinGW and hit Enter. Here click the   first link from sourceforge.net. Click on  download and wait for a couple of minutes. Once it finished downloading,  here click on open folder. This is my MinGW setup file. So double click  on the setup to install. This opens up the   installer window. So click on install. This is  the default directly, so I would keep it as it   is and click continue. Wait for some time until  it finish downloading important features. Now   my download is complete. So click on continue.  This opens up the MinGW installation manager.   So in the MinGW installation manager, there are  different packages that are going to be added.   So here, right click on the first package  and click on Mark for installation and   do it for all packages so that  they will be included in your MinGW After selecting all the packets go  to installations and click on apply   change. Now click on apply. Wait for a  couple of minutes to get it installed. Now our download manager completed downloading  and extracting all the important packages to the   MinGW. So click on close. Now let's add the path  of the MinGW compiler so that our system actually   knows the compiler. So go to your C drive and here  you can see the MinGW. Click on it. In the MinGW,   click on bin and copy the path by right clicking  here. it's important as it helps us to compile   our code from anywhere in our system. now go to  the taskbar and search for environment variables.   So type in environment variables and click on  this environment variables option. This opens   up the environment variables window. Click  on environment variables. Co click on path   then edit. Here simply click on new  and paste the path that we copied.   Click on OK. Again ok. Now we finished  installing our MinGW compiler for   C and C plus plus programming. So let's see  if our MinGW compiler is correctly installed.   So go to the search bar and type in CMD to open  the command prompt and on the command prompt   window, type in GCC space dash dash version and  hit Enter. Here you can see that our compiler is   correctly installed. So close this and let's write  our first C program that prints Hello World. So   let's create a new folder on the desktop and name  it C workspace. Now open the workspace and create   a new text document and name it Helloworld.c  as dot C is the extension for C programs.   click on it and it opens up notepad to write  our program. Now let's write the program.   So this is going to be our first program  in C. Now go to file and click on Save.   So it's saved as Helloworld.c. Here you can see  that since the program is written in notepad, the   default extension is dot txt. So to convert it to  dot C, go to view and enable file name extensions.   Now edit the extension as dot C and it  automatically changes the type into C source file.   So now let's compile it. So here in the workspace,  type in CMD and open the command prompt where we   can actually compile our program. So type in  GCC and the name of our c source file which   is Helloworld.c space Dash o. And O is actually  for output as we expect an executable file as   an output and you can name this executable file.  So let's simply name it as Hello and hit Enter.   Our program is correctly compiled and you can  see here that it generated this dot exe file upon   compiling right. Now let's execute it to see the  output. So simply type in the name of the program   which we named as Hello and hit Enter. Therefore,  here you can see that the output Hello world.   So you are not able to write  and run C programs. So thank   you so much for watching and don't  forget to like, share and subscribe.
Info
Channel: Kerim Academy
Views: 4,606
Rating: undefined out of 5
Keywords: how to install mingw w64 on windows 10, mingw w64 install windows 10, how to install mingw w64 on windows, how to install mingw, mingw 64 for windows 10, how to install mingw w64, how to install mingw w64 on windows 11, install mingw, codeblocks installer windows 10, how to install mingw w64 on windows 10 for vs code, how to install visual studio code, windows 10, minimalist gnu for windows, c++ compiler for windows 10, how to install, mingw 64 for windows 11, compiler
Id: R7luzypHpXs
Channel Id: undefined
Length: 4min 45sec (285 seconds)
Published: Mon Sep 11 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.