In this article, we will see how to Download and Install GCC Compiler for C on Windows step by step.
Download and Install GCC Compiler for C on Windows
1. Download MinGW from Here
2. Go into your downloads folder and double click on mingw-get-setup.exe file.
Click on Install to install gcc on windows 10.
Then, select the Installation Directory and click on Continue.
Download is in progress. Once its reached 100% click on Continue.
3. Then, following window will appear after download is complete . Check on mingw32-base , mingw32-gcc-g++ and msys-base.
4. After click on checkbox click on installation and click on Apply Changes.
5. Then, click on Apply.
Than close the window.
6. Go to the installation directory C:\MinGW.
7. Go into bin folder. Click on address bar and copy the path C:\MinGW\bin
8. Hold down your Windows Key and press Pause (Break) which opens System properties > Advanced System Settings > Environment Variables > Under User variables > select path and click on edit > Click on New and paste the C:\MinGW\bin.
Now you successfully installed gcc on windows 10.
Now, verify GCC Compiler installation on Windows.
Open command prompt and type gcc. If it through error like “gcc: fatal error: no input files” means installation is successful.