How to Install C/C++ Compiler on Windows 11 - MinGW GCC

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys in this video I'm going to show you how to install C and C plus plus compiler on your windows 11 machine now compilers are used to convert the source code into machine readable code so that the computer can understand it now the compiler we are going to use is called GCC compiler so first head to your browser and then search for mean gwc compiler and you can see the first page over here from sourceforge click on it foreign and it should start downloading so you can see we've successfully downloaded the setup now close the browser and then double click on the setup to start the installation let's click on install now this is the directory it is going to install our C compiler so let's change this I want to install this on my SSD so just select the drive you want to install this so once you select the drive you click on continue so the installer is going to automatically download the required files for Min GW to install on our Windows machine this may take some time so you can wait [Music] the process has been completed now click on continue [Music] now there are three packages required for basic main GW setup so we have to choose from here the base package over here is for C program then the GCC G plus plus is for C plus plus program and the GCC object C is for Objective C programming so let's select the base program Mark for installation Select gccgplus Plus Mark for installation this is for C this is for C plus plus and this is for objective c so we are going to select that as well Mark for installation and then under installation up here click on apply changes click on apply now it will start downloading all the packages we selected so you can see the installation has been completed so let's close the installation manager close this now we have to check if it's installed or not so open command prompt on your system CMD and then type in this command version and you can see this is not recognized now the command prompt cannot detect the compiler because the environment path variable has not been set now head to your file manager we have to copy the part of the main GW bin so this PC this is the driveway I installed it so I will just click on the drive and then this is the bin so just copy the location copy now if we open command prompt and then specify the location which is Bin now if we try to run that same command again G plus plus version you can see it is now working you can see over here copyright 2016 and every other information but now we have to make these available everywhere so you can run your program from anywhere so it can work on all the directories in your computer so let's close this now go to your search bar search for control panel and then on the search bar on your control panel search for system variables so you're going to see over here edit the system environment variable so click on that now it will take you a click on environment variables down here select the path so you can see the part over here and then click on edit now we have to set up a new path so click on new and then paste the part of your bin folder so this is the part for me depends on where you install yours and then hit OK now we can click on OK and then we can close this now we have to test this so let me go to my download folder now open your Notepad and then type in this code [Music] now let's save us this is the folder we want to save it so let's call this hello dot C and then change the type to offers click on Save so you can see our file has now been saved as hello.c now open your command prompt so this is the command prompt now specify the folder where you save the file so in this case I use the download folder so I will just type in CD downloads hit enter and it would move to this directory over here now to run our code Type in GCC space hello dot C so once you write this GCC it would invoke the C compiler and then you can run any program you want to run so the compiled file will be saved in the same directory with the name a so you can see over here a and this is a compiled file this type of file would look like an application so to run the compiled file just write the name in your command prompt so you can see a over here so let's just write the name in our command prompt [Music] and you can see hello world has been printed so our C compiler has been successfully installed on our Windows 11 PC now you can program in C C plus plus or objective c since we installed three of them so basically this is how to install C C plus plus and Objective C compiler on your windows 11 machine if you have any questions then use the comment section if this video was beneficial to you please hit the Subscribe button and turn on your post notification thank you for watching and I will see you on the next one foreign [Music] [Music]
Info
Channel: Everything Tech
Views: 64,145
Rating: undefined out of 5
Keywords: Everything Tech, Teema Goddowell, windows 11, gcc compiler, c compiler, c++ compiler, objective c compiler, mingw 64 for windows 11, install mingw, c programming, windows 11 c compiler, how to install c compiler in windows 11, mingw c compiler for windows 11 64 bit, best c compiler for windows 11, windows 11 c compiler and ide, c and c++ compiler for windows 11, install c compiler windows, install c compiler windows 11, how to install gnu c compiler on windows
Id: Mmy7y8a-WdA
Channel Id: undefined
Length: 6min 49sec (409 seconds)
Published: Mon Oct 10 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.