大家好,
我的作業環境為 Mac OS, 想使用gfortran編譯一組別人已經寫好的程式庫(大約60個程式),主程式為runclass.f90。因為原程式編寫的作業環境在Windows下的Compaq Visual Fortran,小弟能否將該組程式在mac os上用gfortran編譯、執行和修改?
小弟使用這行指令,gfortran -o runclass *.f90,則出現下列錯誤:
請大家指教幫忙。謝謝。
cks$ man -f fortran
MPI_Comm_f2c(3), Handle translation routines (3) - Translates a C handle into a Fortran handle, or vice versa
MPI_Status_f2c(3), Status conversion routines (3) - Translates a C status into a Fortran status, or vice versa
mpif77(1) - -- Open MPI Fortran 77 wrapper compiler
mpif90(1) - -- Open MPI Fortran 90 wrapper compiler
cks$ gfortran -o runclass *.f90
ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
Undefined symbols:
"_MAIN__", referenced from:
_main in libgfortranbegin.a(fmain.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
cks$

X