Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

static library for f77 files

Mike896
Beginner
594 Views

Hi

I build a static library from several *.f files.

After compiling it shows:

Error: If an external or dummy procedure name is used as an actual argument, its interface shall be explicit or it shall be explicitly declared to have the EXTERNAL attribute [DERIVS]

SUBROUTINE RKDUMB(VSTART,NVAR,X1,X2,NSTEP,DERIVS)
PARAMETER (NMAX=10)
COMMON /PATH/ XX(200),Y(10,200)
DIMENSION VSTART(NVAR),V(NMAX),DV(NMAX)
...

DO 13 K=1,NSTEP
CALL DERIVS(X,V,DV)
CALL RK4(V,DV,NVAR,X,H,V,DERIVS)

.....

RETURN
END

Thank you very much

Mike

0 Kudos
1 Solution
Steven_L_Intel1
Employee
594 Views

The compiler is correct in the error message. You should add:

EXTERNAL DERIVS

if you are passing it as a dummy argument. I can believe that older compilers would not detect this error.

View solution in original post

0 Kudos
2 Replies
Steven_L_Intel1
Employee
595 Views

The compiler is correct in the error message. You should add:

EXTERNAL DERIVS

if you are passing it as a dummy argument. I can believe that older compilers would not detect this error.

0 Kudos
Mike896
Beginner
594 Views

Thank you very much. :)

Mike

0 Kudos
Reply