|
发表于 2009-1-4 19:26:28
|
显示全部楼层
虽然大一的时候曾经学过 Fortran,今天早已忘得一干二净了。。。
我不大熟识 gFortran,但 BLFS 手册里有这麽一段:
http://www.linuxfromscratch.org/blfs/view/svn/general/gcc.html
Note
The Fortran compiler included with the GCC-4.x package now aims to be conformant with the Fortran 95 standard, not the Fortran 77 standard as all previous versions of GCC have been. Please note the following paragraph copied directly from the GCC-4.1.2 gfortran man page.
“Gfortran is not yet a fully conformant Fortran 95 compiler. It can generate code for most constructs and expressions, but work remains to be done. In particular, there are known deficiencies with ENTRY, NAMELIST, and sophisticated use of MODULES, POINTERS and DERIVED TYPES. For those whose Fortran codes conform to either the Fortran 77 standard or the GNU Fortran 77 language, we recommend to use g77 from GCC 3.4.x”
Instructions to install the 3.4.6 version of the Fortran compiler can be found in GCC-3.3.6 and on the BLFS Wiki.
明显地 Lenny 的默认 gcc 绝不可能是 gcc-3.x 了,也许要自行安装旧版才行 |
|