andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
478 stars 130 forks source link

cannot use message.data (type [4]byte) as type [8]byte in assignment #24

Closed sun8911879 closed 10 years ago

sun8911879 commented 10 years ago

github.com/andelf/go-curl/multi.go:57: cannot use message.data (type [4]byte) as type [8]byte in assignment

sun8911879 commented 10 years ago

在osx上编译没问题.在armv7下 编译出错..

andelf commented 10 years ago

好的我看看啊。。。~ 。。

andelf commented 10 years ago

目前看应该是 golang cgo 的 bug,处理 struct 嵌套 union 时候size 计算有问题。 这样,如果你用不到 curl_multi 的功能,可以删掉 multi.go 然后编译一个不带 相关功能的 go-curl

sun8911879 commented 10 years ago

好的 非常感谢

andelf commented 10 years ago

客气~