Menu Close

Install MinGW GCC Compiler on Windows Environment

GCC (GNU Compiler Collection) is a widely used programming language compiler that supports multiple programming languages including C language.

To download and install GCC compiler on Windows environment, you can follow the steps below:

  1. Download MinGW installer: Visit the MinGW official website (https://sourceforge.net/projects/mingw/) and download the MinGW installer. Choose the “mingw-get-setup.exe” file and save it to your local machine.
  2. Run the MinGW installer: Double-click on the “mingw-get-setup.exe” file to run the installer. Follow the installation wizard prompts and select the default options.
  3. Install the required GCC components: Run the “MinGW Installation Manager” program, select “mingw32-gcc-g++” and “mingw32-gcc-objc” under “Basic Setup” on the left-hand side, then click the “Apply Changes” option under the “Installation” menu to install the required components.
  4. Configure the environment variables: Add the installation path of MinGW to the system’s PATH environment variable. Open “Control Panel” -> “System and Security” -> “System” -> “Advanced System Settings” -> “Environment Variables”, find the “Path” variable under “System Variables”, click the “Edit” button, add “;C:\MinGW\bin” to the end of the variable value (replace the path with your installation path if you installed it in a different location), save the changes and close the dialog box.
  5. Test the installation: Open Command Prompt or PowerShell, type “gcc -v” command, if the GCC version information is outputted, the installation was successful.

Now, you can use GCC compiler to compile C language code on Windows environment.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Related Posts

Leave a Reply