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::

PS C:\Users\Lenovo\Desktop\c> g++ --version
g++.exe (MinGW.org GCC-6.3.0-1) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.









Comments

Popular posts from this blog

#37 tshirts page codeswear.com, codeswear.in harry bhai codewithharry@ next js course

#43 Improving Sidebar & Checkout Page for Codeswear.com | NextJs Tutorial for Beginners