今天,gogland下载新更新,并在获取更新后,在错误消息下方显示。以前它工作正常。请建议解决问题。

GOROOT=/usr/local/go
GOPATH=/home/minhaj/GoLang
/usr/local/go/bin/go build -o /home/minhaj/GoLang/bin/GoLangRun -gcflags "-N -l" "-ldflags=-linkmode internal" /home/minhaj/GoLang/src/IndoorMass/IndoorMain.go

命令行参数
github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol close

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol access

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol getcwd

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol ftruncate64

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol fcntl

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol read

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol write

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol fchmod

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol unlink

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol mkdir

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol rmdir

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol fchown

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol geteuid

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol mmap64

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol munmap

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol mremap

github.com/mattn/go-sqlite3(.data.rel): unexpected R_X86_64_64 relocation for dynamic symbol readlink

github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for close (type 42 rtype 1)

github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for access (type 42 rtype 1)

github.com/mattn/go-sqlite3(.data.rel): unhandled relocation for getcwd (type 42 rtype 1)

github.com/mattn/go-sqlite3(.data.rel): relocation target stat64 not defined
/usr/local/go/pkg/tool/linux_amd64/link: too many errors

最佳答案

仅通过将gogland更新到版本Gogland-171.4424.55即可解决问题

关于sqlite - 带Golang的Sqlite3,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43921206/

10-10 00:46