error S0038 :Symbol, dnum, has not been explicitly declared

Hi,
I am trying to compile a fortran 90 code using PGI fortran 12.x, i got this error when building a release (x64 platform):

error S0038 : Symbol, dnum, has not been explicitly declared

here is the code causing this error:

character *255 :: inputStrings(10)
REAL(8) :: tempReal, outputReals(10)
integer :: i, numElements

do i = 1, numElements
tempReal = dnum(inputStrings(i))
outputReals(i) = tempReal
enddo

please help.

Hi Dolf,

“dnum” is an old non-standard extension that has since been standardized by using internal reads.

So changing your code to something to like the following should work:

do i = 1, numElements
! tempReal = dnum(inputStrings(i))
read(inputStrings(i),*) tempReal
outputReals(i) = tempReal
enddo

Hope this helps,
Mat

thanks Mat, I have solved the problem.