PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

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

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Dolf



Joined: 22 Mar 2012
Posts: 100

PostPosted: Thu Apr 26, 2012 3:35 pm    Post subject: error S0038 :Symbol, dnum, has not been explicitly declared Reply with quote

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.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Fri Apr 27, 2012 12:42 pm    Post subject: Reply with quote

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:
Code:
do i = 1, numElements
! tempReal = dnum(inputStrings(i))
read(inputStrings(i),*) tempReal
outputReals(i) = tempReal
enddo


Hope this helps,
Mat
Back to top
View user's profile
Dolf



Joined: 22 Mar 2012
Posts: 100

PostPosted: Fri Apr 27, 2012 6:16 pm    Post subject: thanks, problem solved Reply with quote

mkcolg wrote:
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:
Code:
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.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group