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

ifort 'use ifcore' for library routines

etroup
Beginner
1,239 Views
Hi,
To use the library routine 'gerror' in IFC v8 requires a 'USE IFCORE' statement in the source. Gerror is listed as part of the Intel Fortran RTL, so shouldn't it link in automatically? Is there a way to use gerror with only F77 syntax and a link option?

thanks

Euan.
0 Kudos
2 Replies
TimP
Honored Contributor III
1,239 Views
It's certainly a "good thing" to have the USE IFCORE if you intend to call any of those functions. If, for some unknown reason, you didn't want it, you should be able to
call for_gerror(errmsg)
You just don't get any compile time checking on whether you typed errmsg correctly, nor the ability to have it work on both Windows and linux without paying attention to the case and underscore options.
What advantage could there be in trying to adhere to f77, when you are calling an Intel-specific support library function?
If you are using some command other than ifort to link, you will need to specify the libraries, regardless of whether you have the USE, but without the USE, you are responsible for putting the exact internal name in yourself.
0 Kudos
etroup
Beginner
1,239 Views
Thanks for the reply, Tim. Some of my code needs to be backported to an ancient version of VMS & DEC Fortran (V6.1/6.2). Having a routine name that I can use either the native version or define my own makes life easier.
0 Kudos
Reply