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

Funny symbols in "include" file (maybe library interface specs?)

dposnersbcglobal_net
352 Views
Forgive me, the last time I wrote fortran code I used punch cards. I'm trying to compile a modeling system from the energy department (NEMS) and the .f file has an "include" file and the include file has lines like the following:

INTEGER*4 FUNCTION WFMPSOU ( ACTFILE, ACTPROB, FILENAME, &
DECJABNEm IBECIEF )

and

integer*4 function OMLXPRSsetintcontrol &
[STDCALL, ALIAS:'_OMLXPRSgetintcontrol@8'] &
(index, ivalue)

I'm guessing this has something to do with interfacing to libraries (OML is a library) but my Fortran compiler hasn't any idea what to make of these things. Can anyone give me a clue or a pointer?

Thanks.
0 Kudos
2 Replies
TimP
Honored Contributor III
352 Views

integer*4 function OMLXPRSsetintcontrol &
[STDCALL, ALIAS:'_OMLXPRSgetintcontrol@8'] &
(index, ivalue)

This one looks like a clumsy way of using an obsolete interface to 32-bit Microsoft C, so you would want to change to something more standard.
0 Kudos
Steven_L_Intel1
Employee
352 Views
Which Fortran compiler is yours? Intel Fortran accepts that syntax, which is an old Microsoft extension. However, as Tim correctly notes, this bit is written specifically for Windows, so if you want to use it on Linux, you'll need to make changes.
0 Kudos
Reply