I am trying to run this code:
package main
import ("github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl")
func run(){
cfg := pixelgl.WindowConfig{
Title:"My First program",
Bounds:pixelgl.R(0,0,800,600)
}
window,err := pixelgl.NewWindow(cfg)
if err != nil{
panic(err)
}
for !window.Closed(){
win.Update()
}
}
func main(){
pixelgl.Run(run)
}
but whenever I type
go run pixel.go
I get this error
exec: "gcc": executable file not found in %PATH%
I have C:\TDM-GCC-64\bin in both my user path and the system path and the system finds gcc easily whenever I type "gcc" into cmd. I have an x64 Windows 10 System