Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

"USE IFPORT" not needed?

cjosefy
Beginner
507 Views
Using 8.1.023 on Linux:
Given this code from the library reference:
Code:
use IFPORT
character*20 username
CALL GETLOG (username)
print *, "You logged in as ",username
I can remove the "use IFPORT" statement and compile withonly the -static-libcxaoption and the code still works. I guess I don't understand why when I don't include the "use IFPORT" statement, the code still works.
Thanks,
Chris
0 Kudos
1 Reply
Steven_L_Intel1
Employee
507 Views
The portability library is linked in by default. You can get away without the USE for many routines. But some with varying argument lists (RAND, for example) require the USE.
0 Kudos
Reply