Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

name conflict between IFPORT and an object library

Matthew_Nicoll
Beginner
783 Views

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
Steven_L_Intel1
Employee
783 Views

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.

0 Kudos
Matthew_Nicoll
Beginner
783 Views

Thanks Steve.  GETFILEINFOQQ worked fine.

0 Kudos
Reply