The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
hashdog

求教大佬, func getg() uintptr 编译错误 missing function body

  •  
  •   hashdog · Mar 25, 2022 · 3403 views
    This topic created in 1692 days ago, the information mentioned may be changed or developed.
    这个错误来自 GitHub 上的一个库
    # github.com/v2pro/plz/gls
    ../../../go/pkg/mod/github.com/v2pro/[email protected]/gls/goid.go:27:6: missing function body

    func getg() uintptr
    就这样一行
    新人求教怎么解决。
    4 replies  •  2023-10-19 14:13:10 +08:00
    qq1009479218
    qq1009479218
    Mar 25, 2022
    1
    这个库的代码确实编译不过,func getg() uintptr 这个缺少方法体,貌似作者弃坑了,要不 clone 一份自己改一改,要不换吧
    hashdog
    hashdog
    OP
    Mar 25, 2022
    2
    @qq1009479218 已经搞定了,是没有适配 Apple silicon 导致的,x86 是有适配的
    qq1009479218
    qq1009479218
    Mar 25, 2022
    3
    @hashdog 原来是在调用汇编,我又口嗨了,抱歉
    chenzijian
    chenzijian
    Oct 19, 2023
    4
    请问怎么解决的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1810 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:06 · PVG 00:06 · LAX 08:06 · JFK 11:06
    ♥ Do have faith in what you're doing.