Error: cannot compile a simple Fortran program

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
nathand
帖子: 19
注册时间: 2010-05-10 13:40
送出感谢: 0
接收感谢: 0

Error: cannot compile a simple Fortran program

#1

帖子 nathand » 2011-06-14 0:33

各位好,我在编译HDF-4.2.5(http://www.hdfgroup.org/release4/obtain.html)的时候,出现了以下错误,请问应该如何解决?

代码: 全选


。。。。。。
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU Fortran 77 compiler... no
checking whether g77 accepts -g... no
checking how to get verbose linking output from g77... configure: WARNING: compilation failed

checking for Fortran 77 libraries of g77... 
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: in `/home/nathan/hdf-4.2.5':
configure: error: cannot compile a simple Fortran program
See `config.log' for more details.


头像
枫叶饭团
论坛版主
帖子: 14685
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
送出感谢: 1 次
接收感谢: 132 次
联系:

Re: Error: cannot compile a simple Fortran program

#2

帖子 枫叶饭团 » 2011-06-14 10:25

自己分析错误吧:编译这事不好说,各种错 :em06
See `config.log' for more details.
levee
帖子: 3030
注册时间: 2009-10-03 23:31
送出感谢: 0
接收感谢: 13 次

Re: Error: cannot compile a simple Fortran program

#3

帖子 levee » 2011-06-14 20:40

checking whether we are using the GNU Fortran 77 compiler... no

系统没有GNU Fortran 77编译器。
回复

回到 “办公、图像、机械电子设计等”