在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
在Mac(OSX 10.15)系统下,Go HTTP客户端程序编译报错。通过网上搜索得知,可调整编译参数解决,具体为设置export CGO_CPPFLAGS=\-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-builtin-requires-header\,还可参考github原帖。
在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

被折叠的 条评论
为什么被折叠?
