为 ARMv6、ARMv7 和 i386 架构构建 f2c
我想为 ARMv6、ARMv7 和 i386 架构构建 f2c 库。
我找到了这个链接 ftp://ftp.netbsd.org /pub/NetBSD/packages/pkgsrc/devel/libf2c/README.html,但是当我使用 ARM 库时,Xcode 会生成一个警告:
“忽略文件/Projects/Demo/FortranDemo/libf2c.a,文件是为 存档不是正在链接的架构(armv6)”并且相同 适用于armv7。
有人可以帮我吗?
I want to build f2c library for ARMv6, ARMv7 and i386 architectures.
I found this link ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/libf2c/README.html, but when I used ARM libraries, Xcode generates a warning that:
"ignoring file /Projects/Demo/FortranDemo/libf2c.a, file was built for
archive which is not the architecture being linked (armv6)"and same
for armv7.
Can anybody help me in this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
f2c 已经很古老了,不再维护了,AFAIK。您设置 gfortran 的运气可能会更好。如果你能让它工作的话,作为交叉编译器肯定会更方便。
我不了解 iphone,但人们报告在 android 上使用 gfortran 取得了成功,请参阅 如何构建或从哪里获取支持 fortran 的 Android NDK 独立工具链?
f2c is pretty ancient and no longer maintained, AFAIK. You might have better luck setting up gfortran. Doing it as a cross-compiler would definitely be more convenient if you can get that to work.
I don't know about iphone, but people have reported success with gfortran on android, see answers to How to build or where to get an Android NDK stand-alone toolchain supporting fortran?