Hello everyone, I am trying to compute the zero of a function using DZREAL(...) from the IMSL library with Fortran77. Unfortunately it gives me:
"error LNK2019: unresolved external symbol _DZREAL referenced in function _ELECTROCHEMICAL"
"fatal error LNK1120: 1 unresolved externals"
Here is a piece of my code:
SUBROUTINE ELECTROCHEMICAL (...)
IMPLICIT REAL*4 (A-H,J-Z)
END SUBROUTINE ELECTROCHEMICAL
END FUNCTION F
Anyone is able to explain me why things do not work?
When you USE ZREAL_INT you are using the "F90 interface", which has you call ZREAL and the argument list may be different. See https://docs.roguewave.com/imsl/fortran/6.0/math/default.htm?turl=zreal.htm Your argument list is for the "F77 interface".
That said, the USE probably has no effect here since that module doesn't define DZREAL. Instead you have probably not linked to the IMSL libraries with the appropriate INCLUDE line in your main program.