Search code examples
eclipseeclipse-pluginmingwgocgo

How to use cgo in Goclipse with Mingw?


When i try to use cgo I get the error

exec gcc: exec: "gcc": executable file not found in %PATH%

I have Mingw installed. How do I tell Goclipse where gcc is? I could not find a way in preferences or properties to set this.


Solution

  • Add the path to MinGW gcc to your Windows PATH environment variable.

    Setting environment variables under Windows