V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · 2981 views
    This topic created in 1504 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
        1
    qq1009479218  
       Mar 25, 2022
    这个库的代码确实编译不过,func getg() uintptr 这个缺少方法体,貌似作者弃坑了,要不 clone 一份自己改一改,要不换吧
    hashdog
        2
    hashdog  
    OP
       Mar 25, 2022
    @qq1009479218 已经搞定了,是没有适配 Apple silicon 导致的,x86 是有适配的
    qq1009479218
        3
    qq1009479218  
       Mar 25, 2022
    @hashdog 原来是在调用汇编,我又口嗨了,抱歉
    chenzijian
        4
    chenzijian  
       Oct 19, 2023
    请问怎么解决的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1069 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:59 · PVG 06:59 · LAX 15:59 · JFK 18:59
    ♥ Do have faith in what you're doing.