从 C 库头自动生成 Fortran 2003 绑定(使用 iso_c_bindings 内部模块)
是否有工具可以使用 Fortran 2003 标准中的内在 iso_c_bindings
模块从 C 库头自动生成 Fortan 绑定?
我对将 C 翻译为 Fortran 不感兴趣,而只是生成绑定。
Is there a tool to automatically generate Fortan bindings from C library header, using intrinsic iso_c_bindings
module from Fortran 2003 standard?
I am not interested in translating C to Fortran, but only generating bindings.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用自动工具来获取 gtk-fortran 绑定。这是一个Python脚本
cfwrapper.py
。您也许可以根据自己的需要进行调整,尽管对于我的小问题,我最终选择了手工装订。An automatic tool was used to get the gtk-fortran bindings. It is a Python script
cfwrapper.py
. You might be able to adapt it to for your needs, although for my small problems I finally chose to make the bindings by hand.另一个需要考虑的项目是 h2m:https://github.com/dan-nagle/h2m
然而,此时,在 macOS 上,我无法成功编译 h2m。
Another project to consider is h2m: https://github.com/dan-nagle/h2m
However, at this time, on macOS, I cannot successfully compile h2m.