Governor's Career & Technical Academy Arlington

CS/IT Resources

Installing and Configuring GCC on Windows

  1. Download the installer codeblocks-20.03mingw-setup.exe from here, then run the installer.
  2. Download Git-2.43.0-64-bit.exe from here, then run the installer.
  3. In your user directory, create a subdirectory named GccLibs.
  4. 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\bin
    • CPATH: C:\Users\[your user]\GccLibs

After restarting Windows, you should now be able to compile and run C programs from the GitBash shell.