如何将mortran代码转换为fortran代码

时间:2015-11-18 20:09:37

标签: fortran

我想要阅读和编译一些Mortran代码(来自glmnet)。我知道在编译时,Mortran首先转换为Fortran然后编译,如果有预处理器的话。如何安装Mortran预处理器?特别是OS X上的Mortran3。

我在http://rcwww.kek.jp/research/egs/egs4_source.html找到了Mortran3代码。但是,当我尝试使用命令gfortran -ff2c mortran3.f编译文件mortran3.f时,我收到错误

couldn't understand kern.osversion `14.5.0'
ld: warning: object file (/var/folders/35/0vr6fpgs7k7bp94sk_syn2mc0000gn
/T//ccQDqd3K.o) was built for newer OSX version (10.10) than being 
linked (10.4)
Undefined symbols for architecture x86_64:
"_egs_fdate__", referenced from:
  _MAIN__ in ccQDqd3K.o
  _rw_ in ccQDqd3K.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

前四行有点像往常一样,虽然它们可能会干扰下游弹出的东西?

0 个答案:

没有答案