I am attempting to compile a .go source file to a .linux file. I'm using TDM-GCC-64 on Windows 7 64-bit.
I have set my GOOS to 'linux'. I've also set GOARCH to amd64.
I then rebuild Go in C:\Go\src using make.bat. This all runs successfully.
The compilation runs successfully but each time it compiles a Windows .exe despite the system variables set.
My question is how to overcome this issue - what am I doing wrong?
Edit: I had MinGW installed before TDM-GCC, which did not work.