Skip to content

Instantly share code, notes, and snippets.

@ValchanOficial
Last active January 25, 2023 13:28
Show Gist options
  • Save ValchanOficial/a37cd18a040063ddc07f6e5082d61376 to your computer and use it in GitHub Desktop.
Save ValchanOficial/a37cd18a040063ddc07f6e5082d61376 to your computer and use it in GitHub Desktop.
Golang - gcc - Windows
https://gcc.gnu.org/
https://stackoverflow.com/questions/43580131/exec-gcc-executable-file-not-found-in-path-when-trying-go-build
gcc (the GNU Compiler Collection) provides a C compiler.
On Windows, install TDM-GCC(http://tdm-gcc.tdragon.net/download). The github.com/miekg/pkcs11 package uses cgo.
Cgo enables the creation of Go packages that call C code.
System Variables > PATH > add "C:\TDM-GCC-64\bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment