- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - dposnersbcglobal.net
integer*4 function OMLXPRSsetintcontrol &
[STDCALL, ALIAS:'_OMLXPRSgetintcontrol@8'] &
(index, ivalue)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page