how to run Fortran 77 on MAC term
by fromvt from LinuxQuestions.org on (#4QBYJ)
I am trying to run an old FORTRAN 77 code on MAC term
A simple test compiles using
g77 -c test.f
producing test.o however cannot produce an executable as
g77 -o test test.o
gives an error
"ld: library not found for -.o
collect2: ld returned 1 exit status"
My test.f :
x=10
write(7,1000)x
1000 format (1x, i3)
end
I am not committed to g77, but gfortran gives error
"segmentation fault:11"
even at the compilation stage
Please help. Thank you
~


A simple test compiles using
g77 -c test.f
producing test.o however cannot produce an executable as
g77 -o test test.o
gives an error
"ld: library not found for -.o
collect2: ld returned 1 exit status"
My test.f :
x=10
write(7,1000)x
1000 format (1x, i3)
end
I am not committed to g77, but gfortran gives error
"segmentation fault:11"
even at the compilation stage
Please help. Thank you
~