- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, apologies but I'm very new to FORTRAN. Now that the excuses are out of the way...I am in theprocess of integrating several C functions within some historic FORTRAN 77 code and havefollowed the Fortran Calls to C example within the MSDN library which works fine. However, I have several structures within the C file that need filling. On the off chance I typed INTERFACE TO STRUCTURE and it all appeared, within the source file, in blue, identical to how INTERFACE TO SUBROUTINEis displayed. First of all is INTERFACE TO STRUCTUREa legitimate operation and if so how is it used as I can't find anything within the help files defining the format that it should take. Thanks, doug.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, INTERFACE TO STRUCTURE is not valid. The editor just colors keywords it recognizes no matter in what context.
INTERFACE TO is a Microsoft Forttan PowerStation extension that our compiler supports (with an exception), but it is not documented. I suggest that you use the now standard Fortran syntax of INTEFACE blocks. Please see the Language Reference Manual for information on those. (The exception is that Microsoft allowed INTERFACE TO at the beginning of source files and it applied to all routines in that source file. We don't support that placement.)
STRUCTURE is another extension, this time from DEC Fortran. This is documented in an appendix - you should use the standard Fortran TYPE declarations instead.
INTERFACE TO is a Microsoft Forttan PowerStation extension that our compiler supports (with an exception), but it is not documented. I suggest that you use the now standard Fortran syntax of INTEFACE blocks. Please see the Language Reference Manual for information on those. (The exception is that Microsoft allowed INTERFACE TO at the beginning of source files and it applied to all routines in that source file. We don't support that placement.)
STRUCTURE is another extension, this time from DEC Fortran. This is documented in an appendix - you should use the standard Fortran TYPE declarations instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for clearing that up.
Doug

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