我总是无法在每次调用时都编译简单的Go代码或使用sqlite库。 我使用Go 1.9.7和osx mojave(10.14.3)
示例代码:
package main
import (
"fmt"
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
)
func main() {
fmt.Print("connecting.")
db := sqlx.MustConnect("sqlite3", ":memory:")
db.Ping()
fmt.Print("connected")
}
总是出现此错误
# command-line-arguments
/usr/local/go/pkg/tool/darwin_amd64/link: /usr/local/go/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)
有什么主意吗?