[OS X] VIz5D on MacOS-X 10.4 f77

Andy Jacobson andyj at splash.princeton.edu
Mon Oct 17 15:05:19 EDT 2005


>

Hi Stewart,

     I'm not much of a fortran person, but from this error message:

> fort77  -g -O2 -c -o igmk3d.o `test -f igmk3d.f || echo './'`igmk3d.f
> igmk3d.f:
>    igmk3d:
>    ignm3d:
>    igqt3d:
>    igop3d:
>    igmp3d:
>    iggt3d:
> Error on line 172: Statement order error: declaration after DATA
>    igpt3d:
>    igcf3d:


     ...it appears to me that while compiling the file igmk3d.f, the  
compiler found a variable declaration after a fortran DATA  
statement.  Some observations:

     (1) It would appear you are not using g77 as your fortran  
compiler.  You might find that switching to g77 (obtain it via fink),  
your problem magically goes away.

     (2) It might also be possible to edit the source code and change  
the order of the statements somwhere around line 172.  This, however,  
would be treating symptoms and not causes, and I do not recommend  
this course of action.  I think your problem lies in the particular  
fortran compiler.

     Keep us advised,

         Andy

--
Andy Jacobson

andy.jacobson at noaa.gov

Program in Atmospheric and Oceanic Sciences
Sayre Hall, Forrestal Campus
Princeton University
PO Box CN710 Princeton, NJ 08544-0710 USA

Tel: 609/258-5260  Fax: 609/258-2850






More information about the OSX mailing list