如何导入和使用.so文件 [英] How to import and use .so file

查看:74
本文介绍了如何导入和使用.so文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我示例(代码),如何将gccgo制成的.so文件导入到main.go中?

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

推荐答案

Go尚不支持动态代码加载(即插件).有计划在将来增加支持,但目前没有设置时间表:

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

这篇关于如何导入和使用.so文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆