PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

DATE_AND_TIME intrinsic

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



Joined: 18 Jan 2013
Posts: 4

PostPosted: Wed Jan 23, 2013 9:33 am    Post subject: DATE_AND_TIME intrinsic Reply with quote

I cannot get the DATE_AND_TIME intrinsic function to link no matter what I try. Here is sample code:
Code:

      Program TIME_TEST
C    
      CHARACTER*10  JDATE, JTIME, JZONE
C
      DIMENSION  IREST ( 8 )
C    
     CALL DATE_AND_TIME ( JDATE, JTIME, JZONE, IREST )
C    
     WRITE(*,*) 'JDATE, JTIME, JZONE, IREST', JDATE, JTIME, JZONE, IREST
C    
     END


I have tried everything to no avail, I always get an error LNK2019: unresolved external symbol, and then the symbol name is different depending on which compile flags I use, i.e.:

<no flag>
pgf77 time_test.for
gives unresolved external symbol _DATE_AND_TIME@28

-Munix & Miface=unix
pgf77 -Munix time_test.for
gives unresolved external symbol _date_and_time_

-Miface=cref
pgf77 -Miface=cref time_test.for
gives unresolved external symbol _DATE_AND_TIME

I am working in 32 bit Windows XP.

Thanks in advance for your help.

Justin C.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Jan 23, 2013 1:10 pm    Post subject: Reply with quote

Hi Justin,

DATE_AND_TIME is an F90 intrinsic so you'll need to use pgfortran instead of pgf77 to use this intrinsic.

Hope this helps,
Mat
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