qiniu / iconv

Golang bindings to libiconv - Convert string to requested character encoding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译时报 gcc: 错误:unrecognized command line option ‘-mthreads’ 错误

haochun opened this issue · comments

编译命令是 CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -o bin/xxxx.exe client
如果 CGO_ENABLED=0 就报错src/common/iconv/reader.go:10: undefined: Iconv
求教这个是哪里有问题?

我只要调用 go get github.com/qiniu/iconv。如果GOOS设置为windows就会出这个错误,换成linux就没问题。。

cgo 不支持交叉编译