为 FreePascal / Lazarus 包装 Fortran 库
我想使用 DIERCKX 库(用 Fortran 编写)的一些例程)在 FreePascal 中使用 Lazarus 编写的程序中。由于我对 Lazarus 完全陌生,我想知道该走哪条路:哪些步骤是必要的,我该怎么做?
编辑 在Linux上开发,但是我创建的库需要在Windows上编译,因为它将在Delphi程序中使用。我的 Linux 机器上安装了 gfortran 和 g95;但如果能够在没有 Cygwin 和 Intel Fortran 的 Windows 上编译它,那就太好了。
I would like to use some routines of the DIERCKX library (which is written in Fortran) in a program written in FreePascal with Lazarus. Since I'm totally new to Lazarus, I'd like to know which way to go: Which steps are necessary, and how do I go about this?
EDIT
Developing on Linux, but the library I create will need to be compiled on Windows, because it will be used in a Delphi program. gfortran and g95 are installed on my Linux box; but it would be good to be able to compile it on Windows without Cygwin and without Intel Fortran.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你把这里的情况过于复杂化了。
拉撒路不等于德尔福。
无需修改或语言特定类型的过程/函数。
对于其余的事情,如果你解释一下你到底被困在哪里,那就会更清楚了。
I think you are overcomplicating the situation here.
Lazarus is not equal to Delphi.
procedures/functions without mangling or language specific types.
For the rest it would be clearer if you explain where exactly you are stuck.