alecthomas/gozmq — Issue #10: Cannot compile under Windows
Author: jhawk28
Created: 2011-10-13 13:24:29+00:00
State: open

I updated the CGO_CFLAGS and the CGO_LDFLAGS to point to the ZMQ include and lib directories. Here is the output:

$ make
CGOPKGPATH=github.com/alecthomas cgo -- -I"D:/Program Files/zeromq-2.1.10/include" zmq.go
touch _obj/_cgo_run
8g -p github.com/alecthomas/gozmq -o _go_.8 _obj/zmq.cgo1.go _obj/_cgo_gotypes.go
zmq.go:320[_obj/zmq.cgo1.go:323]: cannot use _Ctype_int(pi.Fd) (type _Ctype_int) as type _Ctypedef_SOCKET in assignment
make: *** [_go_.8] Error 1