mac下运行go 遇到 producing ‘defined‘ has undefined behavior
在mac下go http客户端程序编译报一下错误用的是osx 10.15
网上搜了一下,需要调整编译参数。
export CGO_CPPFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-builtin-requires-header"
可以参考github原帖
https://github.com/golang/go/issues/38876
...
原创
2021-04-26 10:42:00 ·
138 阅读 ·
0 评论