chai2010 / guetzli-go

Guetzli perceptual JPEG encoder for Go (Zero Dependencies).
https://godoc.org/github.com/chai2010/guetzli-go
85 stars 7 forks source link

Installation fail: invalid flag #cgo LDFLAGS.... #10

Open richp10 opened 6 years ago

richp10 commented 6 years ago

Running windows, latest MinGW GCC available on path:

go get github.com/chai2010/guetzli-go

fails with error:

go build github.com/chai2010/guetzli-go: invalid flag in #cgo LDFLAGS: -Wl,--allow-multiple-definition

Thoughts?

chai2010 commented 6 years ago

which Go version do you use?

Since Go1.10, cgo use whitelist for cgo flags: https://github.com/golang/go/wiki/InvalidFlag

And you can try tdm gcc: http://tdm-gcc.tdragon.net/download