windowsgo

Compile Go file in Windows?


I am trying to learn Go and have installed Go MinGW but I cannot find out how to actually compile a .go file ANYWHERE. This is the program linked directly from the Go wiki for Windows Support, but all the tutorials talk about using 6g and gccgo etc. to compile and none of those work from my windows machine.


Solution

  • I'm dumb, the file linked is 32 bit and I was using "6g" to compile because my system is 64 bit. "8g" works to compile.
    "8g myfile.go"
    "8l myfile.8"
    "myfile.out"
    Works to get it running.