fortran77 - Compiling legacy fortran 77 code on a MAC with gfortran: %LOC() causing problems? -


i working on compiling legacy fortran 77 code on mac os x 10.8.4 using gfortran 4.6.2. gfortran installed http://gcc.gnu.org/wiki/gfortranbinaries#macos site.

according gcc.gnu.org wiki gfortran, release 4.2 includes this: "the dec extensions %val, %loc , %ref supported."

i getting error below when compile:

        ipl(i) = %loc(r8d(initx(i)+1))                                                 1 

error: invalid character in name @ (1)

is there workaround?

it seems new intrinsic loc can used instead:

the loc() intrinsic works same way %loc() construct

http://gcc.gnu.org/onlinedocs/gfortran/loc.html


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -