Article 4QBYJ how to run Fortran 77 on MAC term

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
~latest?d=yIl2AUoC8zA latest?i=PBgbX99U_5Y:sZ_qdYpLzQY:F7zBnMy latest?i=PBgbX99U_5Y:sZ_qdYpLzQY:V_sGLiP latest?d=qj6IDK7rITs latest?i=PBgbX99U_5Y:sZ_qdYpLzQY:gIN9vFwPBgbX99U_5Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments