Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

name conflict between IFPORT and an object library

I have an object library which has a function with the unfortunate name of "STAT".

I want to use the IFPORT module routine which also has the unfortunate name of "STAT".

How do I specify that the IFPORT STAT should be called, and not the object library STAT?

I tried the following statement:
  USE IFPORT, ONLY: File_Info => STAT
then calling File_Info, but that did not help.

(Is there a better way to get a file modification date in Windows than using STAT?)

0 Kudos
2 Replies
Highlighted

How about GETFILEINFOQQ?

How about GETFILEINFOQQ?

The problem you have is that the actual portability routine is named STAT, so even if you hide the identifier the linker will still get the wrong one. That's a risk with the portability routines. I long for the days of VMS and its standards for keeping user and system namespaces separate.

Retired 12/31/2016
0 Kudos
Highlighted
Beginner

Thanks Steve.  GETFILEINFOQQ

Thanks Steve.  GETFILEINFOQQ worked fine.

0 Kudos