Closed ghost closed 5 years ago
From the cgo wiki entry:
In order to use cgo on Windows, you'll also need to first install a gcc compiler (for instance, mingw-w64) and have gcc.exe (etc.) in your PATH environment variable before compiling with cgo will work.
Git alone may not be enough since there's no real need for them to ship a gcc toolchain, and my guess is that they don't. I'd try using a full Mingw or Cygwin package.
Make sure you're running a mingw-aware terminal or just add your set PATH=%PATH%;<mingw_path>\bin
).
@exploser thanks for the in-depth instructions - thats a huge help.
I cant seem to get it setup for windows. I am a mac person normally. heres where i am:
I have git for windows installed and this seems to also setup the ming64 env for me. Its gotten alot better lately.
But i dont have make or its gcc, etc
did some googling but i got completely confused..
On windows i actually use mage, which is a pure golang replacement for make. On windows i do:
then you can call mage blah, just like your woudl make blah. anyway..