从 C 库头自动生成 Fortran 2003 绑定(使用 iso_c_bindings 内部模块)

发布于 2024-12-20 18:15:12 字数 145 浏览 8 评论 0原文

是否有工具可以使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

难理解 2024-12-27 18:15:12

使用自动工具来获取 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.

养猫人 2024-12-27 18:15:12

另一个需要考虑的项目是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文