PGF90-S-0038-Symbol, sqrt, has not been explicitly declared


I thought that sqrt() was an intrinsically declared math function. Can someone explain to me why my compiler is not recognizing it as such?

Your help is greatly appreciated!


Hi Matt,

You are correct that SQRT is an intrinsic. However if you are using it with an expected data type such as an integer, then the compiler must presume that you’re referring to a locally defined variable or subroutine called “sqrt”. Fortran allows you to override intrinsics symbol names.

Can you give more context or a code example on how you’re using SQRT?