pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.18k stars 164 forks source link

cross compile failed with go 1.6 for windows x64 on OSX10.11 #85

Open monotone opened 8 years ago

monotone commented 8 years ago

Hi, I could cross compile success for other GO library. But when I cross compile for this library, it failed.

 ✘  ~/code/go/src/github.com/pebbe/zmq4   master  GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build
# runtime/cgo
clang: error: unknown argument: '-mthreads'
pebbe commented 8 years ago

I have no experience with crosscompiling with C source. Perhaps someone on golang-nuts can help you:

https://groups.google.com/forum/m/#!forum/golang-nuts