This guide details how to install MinGW/clang, and ENGR 101's preferred code editor, Geany, on a Windows or macOS operating system. Linux users (who probably don't need any guide) should follow the guide on the ECS wiki.
If you've already got mingw/clang installed, skip to the bottom to install Geany.
Installing MinGW (or clang)
This guide details how to install MinGW, the GNU C/C++ compiler, on a Windows or macOS operating system (
If you have a Mac, you'll probably need to run
xcode-select -install in a Terminal window, and wait for it to finish, and then you should be done. (This will install Clang, which is GCC-compatible)
If you have anything in
C:\MinGW, delete it.
- Go to this website and click either
MinGW C/C++ For Windows 11 32/64 bit(for Windows 11) or
MinGW C/C++ For Windows 10 32/64 bit(for Windows 10)
Do not download the Turbo compiler.
- Run the downloaded file (
mingw.exe). When it asks for a path, enter
C:\MinGW. See picture:
- Click 'Extract'. Wait.
- In Windows search, type 'env' and click on 'Edit the system environment variables':
- Click the entry for 'Path' and click 'Edit':
- Click 'New', and type
- Click 'ok' and close all the windows.
Command Promptand type
g++ --version(you may need to restart Command Prompt if you had any open windows)
If you still can't make it work, attend an ENGR 101 Workshop session.
Install Geany from https://www.geany.org/download/releases/.
Choose the right option from the table below:
|Apple, Intel processor||
|Apple, Apple Silicon processor (M1)||