Code Monkey home page Code Monkey logo

Comments (12)

pkujhd avatar pkujhd commented on August 16, 2024

@patyhank 给出你的测试环境,在darwin/amd64 golang1.20下未能复现你的错误

from goloader.

patyhank avatar patyhank commented on August 16, 2024

linux/amd64 go 1.20.4

from goloader.

patyhank avatar patyhank commented on August 16, 2024

有可能是間接使用泛型導致的嗎
因為我並沒有直接使用 maths.(*Vec3d[float64]).Add
直接在載入的檔案裡面使用似乎是可行的

from goloader.

pkujhd avatar pkujhd commented on August 16, 2024

在linux/amd64 golang 1.20中也无法复现你的问题

from goloader.

pkujhd avatar pkujhd commented on August 16, 2024

有可能是間接使用泛型導致的嗎 因為我並沒有直接使用 maths.(*Vec3d[float64]).Add 直接在載入的檔案裡面使用似乎是可行的

能否给出一个testcase

from goloader.

patyhank avatar patyhank commented on August 16, 2024

稍等

from goloader.

patyhank avatar patyhank commented on August 16, 2024

test.zip

from goloader.

pkujhd avatar pkujhd commented on August 16, 2024

这样注册不了,你需要加载rawtest/shared这个包的.a

goloader.RegTypes(symPtr, []int32{}, math.Floor)
goloader.ReadObjs([]string{"test.o", "/Users/xxx/Library/Caches/go-build/c0/c0617fe178f43e9f56e030c7e5c9fb1a66418b1482c5bbf86a0ef78436a9233f-d"}, []string{"Test", "rawtest/shared"})
修改成这样就可以了

具体的这个包的路径在importcfg中可以查询到

from goloader.

patyhank avatar patyhank commented on August 16, 2024

這是泛型才需要這樣的嗎

from goloader.

pkujhd avatar pkujhd commented on August 16, 2024

這是泛型才需要這樣的嗎

不是,interface的也是如此

from goloader.

pkujhd avatar pkujhd commented on August 16, 2024

如果你有很多依赖在loader中不存在,建议使用https://github.com/eh-steve/goloader/tree/master 这个分支来处理

from goloader.

patyhank avatar patyhank commented on August 16, 2024

好的謝謝

from goloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.