如何导入和使用.so文件

huangapple go评论75阅读模式
英文:

How to import and use .so file

问题

请给我一个示例(代码),说明如何在main.go中导入由gccgo生成的.so文件。

英文:

Please give me example (code) how to import into main.go a .so file made gccgo?

答案1

得分: 1

Go目前还不支持动态代码加载(即插件)。未来有计划添加支持,但目前还没有具体的时间表:

https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/preview

英文:

Go does not yet support dynamic code loading (i.e. plugins). There are plans to add support in the future, but no set time table at this point:

https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/preview

答案2

得分: 0

你无法动态加载Go的"dll"文件。

英文:

You can't dynamically load Go "dlls", yet.

huangapple
  • 本文由 发表于 2014年10月24日 04:11:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/26536556.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定