Comments (12)
@patyhank 给出你的测试环境,在darwin/amd64 golang1.20下未能复现你的错误
from goloader.
linux/amd64 go 1.20.4
from goloader.
有可能是間接使用泛型導致的嗎
因為我並沒有直接使用 maths.(*Vec3d[float64]).Add
直接在載入的檔案裡面使用似乎是可行的
from goloader.
在linux/amd64 golang 1.20中也无法复现你的问题
from goloader.
有可能是間接使用泛型導致的嗎 因為我並沒有直接使用 maths.(*Vec3d[float64]).Add 直接在載入的檔案裡面使用似乎是可行的
能否给出一个testcase
from goloader.
稍等
from goloader.
from goloader.
这样注册不了,你需要加载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.
這是泛型才需要這樣的嗎
from goloader.
這是泛型才需要這樣的嗎
不是,interface的也是如此
from goloader.
如果你有很多依赖在loader中不存在,建议使用https://github.com/eh-steve/goloader/tree/master 这个分支来处理
from goloader.
好的謝謝
from goloader.
Related Issues (20)
- linker 是不是设计成main.xx导出方法 HOT 3
- 在运行的golang代码如果使用指针会报错 HOT 5
- macos Lstat使用报index out of range HOT 12
- Load error: symName:database/sql.(*DB).Close offset:139266851392960 is overflow! HOT 2
- 有一个想法 HOT 1
- Do I have to build the host program with `-w`? HOT 3
- support golang 1.20
- Can't get example to run using Go 1.20 HOT 3
- how to use it in other program HOT 1
- Load error: unresolve external:runtime.writeBarrier HOT 7
- 你好, 请问这个项目是怎么保持跟随 Go 最新版本的呢 HOT 13
- 实现 MarshalJSON 接口方法, 不会被执行 HOT 16
- Will panic soon when visit pprof web page HOT 7
- the handle of inline is incorrect HOT 11
- the usage of `copy2Slice` here seems to be incorrect, PutInt64 should be used instead HOT 30
- the `addfuncdata` rewrite `0` to `^uint32(0)`, but ignoring the case where 0 represents a normal offset value. HOT 5
- during module unloading, removing the itab can lead to runtime error HOT 1
- `getitab` alloc memory for `itab` by `persistentalloc`, and that couldnt be free HOT 6
- golang 1.21 support HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goloader.