Pages

Sunday, 4 October 2020

How to install MinGW GCC for 64 & 32 bit on Windows 10

1. Download latest MinGW from http://mingw-w64.org/doku.php/download


2. Install and ensure to select 64 or 32 bit architecture during install based on which version you want. Run the install twice to install both


3. Create a user system variable MinGW pointing to the mingw64 or mingw32 installation folder (bin is a sub folder)

Control Panel > System and Security > System > Advanced System Settings > Environment Variables

or

just search for environment in the W10 search bar

 

4. Add %MinGW%\bin to the user system path


5. Test by running 'g++ --version' from powershell or command prompt



No comments:

Post a Comment