How to Download and Install C C++ Toolset ( gcc g++ gdb debugger ) in Windows 11 Computer

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to the channel in this video we will see how we can download and install the tool set for C and C++ so that we can write and execute C and C++ programs in Windows 11 operating system we will also see how we can download and install a debugger for debugging the CN C++ programs so the first thing that we do is we will open up any browser that is installed in the computer I have Microsoft Edge I'm going to open it up and here in the URL bar we will enter msys 2.org this msys2 is a software distribution and building platform for Windows by using this we can download and install latest version of GCC that is gunu compiler collection in our computer GCC provides the tool chain or tool sets for the programming languages like C C++ adaa for R Etc and also GCC provides a debugger the first thing that we have to do is we have to download and install this Ms ys2 and in this installation section we can see download the installer click on the uh link here it will download the installer don't read into the version number here depending on when you're watching this video it will be different and this tutorial will be applicable for all the future versions also so we will click on this it will download the MS ys2 we just have to wait for the download to finish okay now the download is complete if I take the cursor on this downloaded file then I can see this folder icon which says show in folder if I click on that it will open up the folder where the downloaded files are saved as you guys can see here we have downloaded this uh msys2 uh installation file so what we have to do is we have to double click click on this file and we have to install msys2 so here it says welcome and we will click on next we will not change the path here we will click on next we will not do anything we will click on next it will install Ms Ys 2 we will wait for the installation to finish Now by using the magic of video editing I will fast forward this it will take some time to install in your computer so just wait for the installation to finish okay now the installation is complete we will check this checkbox which says run msys2 now and then we will click on finish it will open up the command window now the first thing that we do is we will make sure that all the packages are updated so we will type in a command which is Pac-Man space minus capital S and then lowercase Yu I will provide these commands in the description box you don't have to worry and after that hit the enter button it will check for the packages and uh it will update them if any updates are available now in my case updates are available and that's why it says proceed with the installation in your case updates may be available or may not be available if the updates are not available then it will say there is nothing to do but if the updates are available then uh uh enter Y and hit the enter button it will download and install the updates if updates are not available then you don't have to worry you can continue with the next command now here to complete the updates uh terminal will be closed so in order to confirm that we will enter Y and hit the enter button now the terminal window has been closed now we will click on the start button and we will search for msys and here we can see some apps msys2 MS Y and also we can see Ms Ys 2 UCR t64 we can choose any of this I will choose Ms Ys to Ms Ys once I click on that it will open up the terminal window now again we will make sure that everything is up to date so here I will enter Pacman space minus capital S Yu and hit the enter button now there are some updates available so again it asks for proceed with installation we will enter Y and hit the enter button in your case updates may not be available in that case it will say um nothing to update you can continue with the next command but updates are available then we will make sure that we install them okay now the updates are done now again we will check for any updates so I will type in Pac-Man minus capital S Yu and hit the enter button and this time it will say no updates available because we just have already updated everything so now you guys can see if updates are not available then you will see this kind of message you don't have to worry about it you can continue with the next command so now what we can do is we can uh install the tool set for uh CN C++ programming language now here we have to enter a command I will provide this command in the description box you guys can copy from there or you can watch this video and again uh copy the command so here I'm going to copy and paste the command so which is nothing but Pacman minus s and then minus minus needed we will install base Dil and uh MW UCR tool chain so this will install the MW tool chain for all the languages like C C C++ ad foran uh all the packages will be installed so if I hit the enter button here it will display the packages that it will install for example we can see uh it will install the GCC package for cc++ for a for fortron it will also install a debugger all the required libraries so here we will install everything and to do that it says default equal to all so we can directly just hit the enter button now it will display all the libraries that it will install we just have to enter Y and hit the enter button it will download all those packages and install them we just have to sit back and uh wait for the installation to finish okay now the installation is complete the last thing that we do is we will uh check for any updates so we will enter Pac-Man space minus capital S Yu and hit the enter button it will check for the updates and if any updates are available then it will show but at this particular time no updates are available so now what we can do is we can close this terminal so what we have done now is we have downloaded and installed the tool set for CN C++ the next thing that we have to do is we have to update the path enrollment variable in Windows 11 operating system so that we can access this C and C++ tool set from any folder in the file system to do that we will open up the folder where the CN C++ tool set are installed so in my case it will be uh C drive and in the msys 64 folder so I'm going to open it up and here we can see many different folders in this we will go to UCR 64 this particular folder we will open it up and here we will open up the bin folder so now here you can see all the programs that we have installed for example GCC g++ and uh GDB all these programs are installed here so what we have to do is we have to copy the path of this particular location to do that we just go to this uh uh address bar uh section which is at the top and we will click it here just left click it will highlight the path and we will right click and then copy this path okay after that we can minimize this folder and now we will click on the start button and we will search for edit environment variables and we can see control panel edit enrollment variables for your account we will click on that it will open up this particular window here we can find the user variables and system variables in the user variables section we can see path we will click on it and it will be highlighted like this then we will click on edit and here we will click on new and then we will paste the path that we have copied which is C then uh uh msys 64 UCR uh 64 and then the bin folder we will click outside we will click on okay and then we will click on okay so now we have updated the path now we will see whether GCC g++ are accessible from any folder in the file system to check that we will click on the start button and we will search for CMD we will open up the command prompt and here we will type in GCC space minus minus version we are trying to find the version of GCC installed if I hit the enter button here then you can see here it says GCC 13.2.2 space minus minus version and we will hit the enter button and we can see the version number here similarly we will check the version number for GDB that is the debugger so we will type in G DB space minus minus version and we will hit the enter button and we can see the version of GDB installed in the computer so this is it guys this is how we can download and install latest version of c and C++ tool set from GCC in Windows 11 operating system if you like the video hit the like button if you don't like it hit the dislike button while doing the installation if you face any issues then post your issue in the comment section I'll try to help uh thank you for watching I'll see you later in the next one
Info
Channel: LearningLad
Views: 1,380
Rating: undefined out of 5
Keywords: gcc, g++, gdb, c toolset, c++ toolset, C Toolchain, C++ Toolchain, C++ compiler, debugger, C Programming, C++ Programming, C Compiler, msys2
Id: sQjI5vqKUEo
Channel Id: undefined
Length: 11min 22sec (682 seconds)
Published: Thu Dec 07 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.