Skip to content

Instantly share code, notes, and snippets.

@Plaenkler
Last active December 28, 2023 11:48
Show Gist options
  • Save Plaenkler/0c319b89fbc884a928612b7fdef97fbd to your computer and use it in GitHub Desktop.
Save Plaenkler/0c319b89fbc884a928612b7fdef97fbd to your computer and use it in GitHub Desktop.
Golang - C compiler "gcc" not found

Challenge

cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

Solution

1. Install TDM-GCC http://tdm-gcc.tdragon.net/download
2. System Variables > PATH > add "C:\TDM-GCC-64\bin"

Further information

https://gcc.gnu.org/ gcc (the GNU Compiler Collection) provides a C compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment