This is cross posted on the "unix" board. Please forgive the redundancy.
I'm trying to compile a fortran program on my Mac running OS X. The program compiles fine on SGI, etc systems which have true fortran compilers, so the source code is fine. I am having the following problem:
g77 -o foo foo.f
gives warnings of the type:
line##: warning:
CALL BAR (A(I2),A(I1),A(I3),A(I4),A(I5))
1
line##: continued:
SUBROUTINE BAR (F,BNDOC,LIST,LISTA,SCR)
2
ARGUMENT## (named 'list') of BAR is one type at (2) but is some other
type at (1) (info -g77 M Globals)
Enough of these warnings are generated that the compilation stops.
It had been suggested that I use the -fno-globals flag
(g77 -fno-globals -o foo foo.f)
The program now compiles, but does not seem to work. What does the -fno-globals flag really do? I couldn't find it in the gnu documentation.
Is there something else I should try?