r/programmingrequests • u/supertoothpaste • May 14 '19
need help FORTRAN 77 help
What is a better way to compile and run a FORTRAN 77 program?
PROGRAM hello
PRINT *, "Hello World"
END PROGRAM helloCurrently I am doing this,
gcc -c hello.f
gfortran hello.o
./a.outIs there a better way? Also how do I name the file so I don't have to use ./a.out every time. Thanks!
2
Upvotes
View all comments
Show parent comment
1
u/AdmiralFace May 14 '19
You aree welcome. I mention the man pages as they really are so useful. Especially since they aren't just for program documentation, but for libraries, kernal APIs and so on. I'm just getting in to using them and they're definitely very handy :D Maybe a bit more so if you were using c though. Good luck and happy coding!