Re: [go-nuts] cgo error I don't understand

2021-11-05 Thread rob
That was it.  It's working now. Thank you very much. --rob solomon On 11/4/21 11:00 PM, Roland Müller wrote: Hello, the entry in the path for mingwin is wrong: it should be either start with C:\ or another drive letter or in case it's an absolute path with double backslash. Br Roland Am

Re: [go-nuts] cgo error I don't understand

2021-11-04 Thread Roland Müller
Hello, the entry in the path for mingwin is wrong: it should be either start with C:\ or another drive letter or in case it's an absolute path with double backslash. Br Roland Am Freitag, 5. November 2021 schrieb Robert Solomon : > The full error is: > # github.com/go-gl/glfw/v3.3/glfw > cgo: ex

Re: [go-nuts] cgo error I don't understand

2021-11-04 Thread Ian Lance Taylor
On Thu, Nov 4, 2021 at 4:41 PM Robert Solomon wrote: > > The results of go env are below. If I'm reading this correctly, CC=gcc. > > set GO111MODULE=auto > set GOARCH=amd64 > set GOBIN= > set GOCACHE=C:\Users\Owner\AppData\Local\go-build > set GOENV=C:\Users\Owner\AppData\Roaming\go\env > set GOE

Re: [go-nuts] cgo error I don't understand

2021-11-04 Thread Robert Solomon
The results of go env are below. If I'm reading this correctly, CC=gcc. set GO111MODULE=auto set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\Owner\AppData\Local\go-build set GOENV=C:\Users\Owner\AppData\Roaming\go\env set GOEXE=.exe set GOEXPERIMENT= set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTO

Re: [go-nuts] cgo error I don't understand

2021-11-04 Thread Ian Lance Taylor
On Wed, Nov 3, 2021 at 5:40 PM Robert Solomon wrote: > > I'm setting up a new Windows10 computer. I installed Go 1.17.2 and mingw64 > for cgo. When I tried to compile a project that uses cgo, I got this error: > > cgo: exec gcc: gcc resolves to executable relative to current directory > (.\\ms