How to Install GCC / G++ Compiler

  • This process is only required on Windows operating systems. In most Linux environments, GCC and G++ compilers are installed by default.

  1. Go to the MinGW-W64 download page.

<https://sourceforge.net/projects/mingw-w64/files/>


  1. Click the ‘x86_64-posix-seh’ download link.


  1. ‘x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z’ file will be downloaded.


  1. Unzip it to the file name folder.


  1. Go into the file name folder.


  1. Move the entire mingw64 folder to ‘C:\’.


  1. Find and enter the ‘Edit System Environment Variables’ menu.


  1. Click the ‘Environment Variables’ menu.


  1. Find the ‘Path’ variable in ‘System Variables’ and click ‘Edit’.


  1. Click ‘New’.


  1. Enter ‘C:\mingw64\bin’ and click ‘OK’.


  1. Open a Windows Terminal or cmd window.


  1. Type ‘g++ –version’ and press Enter.


  1. If you see the results above, the installation has been completed successfully.