Fortran IIFIX unknown symbol

Viewed 42

I have an old fortran code compiling nice using GFORTRAN.

But when I try to call a function I'm getting the follow error:

undefined symbol: iifix

I've found 3 occurrences of this function in the code, all of them in same context:

(some blah blah blah)
INTEGER*2  IWAH(24)
real*4     AH(9000)

(more blah blah blah)
iwah (3) = iifix (ah (3))

(and the blah blah blah continues...)

Searching for "IIFIX" I've found only "IFIX()" to convert real numbers to integer. This makes some sense to me because the variables format fits in the function purpose but .... I don't know. I have no idea what I'm doing....

How can I safely replace this function? or ... how can I fix this error?

I'm using gfortran and my code ends with ".f90"

1 Answers

First, integer*2 and real*4 are not portable. I'll ignore that issue. What you likely want is to change iifix(ah(3)) to int(ah(3),2)

Related