24小时热门版块排行榜    

查看: 4041  |  回复: 6
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

370303624

木虫 (正式写手)

[交流] 【求助】请问如何编译带有.mod文件的.f90程序?【已完结】 已有5人参与

我在Visual Fortran 6.6中编译.f90程序,自动生成了.mod文件,但在gfortran中编译时,它提示以下信息:
G:\test>gfortran -c Main.f90
Main.f90:5.16:

use stressModule
                1
Fatal Error: File 'stressmodule.mod' opened at (1) is not a GFORTRAN module filegfortran: Internal error: Aborted (program f951)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
请问如何处理?谢谢!

[ Last edited by nono2009 on 2010-11-25 at 07:28 ]
回复此楼

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dumashu

铁虫 (初入文坛)


nono2009(金币+1):鼓励应助 2010-11-25 07:28:01
把stressModule所在的那个文件先编译
4楼2010-11-22 14:02:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 7 个回答

snoopyzhao

至尊木虫 (职业作家)

★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
nono2009(金币+1):鼓励应助 2010-11-25 07:27:48
你把  VF 生成的 .mod 文件删了,让 gfortran 自己生成好了……
2楼2010-11-21 22:54:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

370303624

木虫 (正式写手)

引用回帖:
Originally posted by snoopyzhao at 2010-11-21 22:54:21:
你把  VF 生成的 .mod 文件删了,让 gfortran 自己生成好了……

谢谢,可是又出现了一个问题:
Main.f90:5.16:

use stressModule
                1
Fatal Error: Can't open module file 'stressmodule.mod' for reading at (1): No su
ch file or directory

gfortran: Internal error: Aborted (program f951)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
可见这个文件还是需要的。那么如何让gfortran生成这个.mod文件呢?
3楼2010-11-22 13:15:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

370303624

木虫 (正式写手)

引用回帖:
Originally posted by dumashu at 2010-11-22 14:02:58:
把stressModule所在的那个文件先编译

问题已解决,多谢!
5楼2010-11-22 16:52:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见