Installing and Configuring GCC on Windows
- Download the installer
codeblocks-20.03mingw-setup.exe
from here, then run the installer. - Download
Git-2.43.0-64-bit.exe
from here, then run the installer. - In your user directory, create a subdirectory named
GccLibs
. - Use
How to Edit Environment Variables on Windows 10 or 11 to set the following
properties on the following environment variables:
PATH
: C:\Program Files\CodeBlocks\MinGW\binCPATH
: C:\Users\[your user]\GccLibs
After restarting Windows, you should now be able to compile and run C programs from the GitBash shell.