How to install MinGW in 2022 | How to install c compiler for windows.| How to set path for c compiler minGW
1.Go to search bar and type MinGW (https://sourceforge.net/projects/mingw/) click on first link.
2.Click on the download button.
3.Click on 1 button then install the exe file.After click on 2 button
4.Click on Continue(step-1).
6.Click on continue(step-2)
7.Check all boxes for mark for installation
8.Click on Apply changes
9. Apply (Applying changes take time to be patient)
10.Click on close .
Your compiler is installed !
11. So after installing the MinGW compiler we can set the environment variables. Go to the C:\MinGW\bin directory
12.Click on search bar search environment variables
13.Double click on path click on new =>paste the path.
15.click on new =>paste the path.
16.Click on all the ok buttons.
Your path is set !
Go to the cmd and type PS C:\Users\Lenovo> g++ --version
The output will be::
Comments
Post a Comment