代码改变世界

Golang出现编译错误

2021-10-21 10:57  宋海宾  阅读(309)  评论(0)    收藏  举报

 

出现如下错误:

SWIG + Go: C source files not allowed when not using cgo

 

增加设置
export CGO_ENABLED=0