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

INTERFACE TO format issue

dcattme
Beginner
457 Views
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.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
457 Views
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.
0 Kudos
dcattme
Beginner
457 Views
Thanks for clearing that up.
Doug
0 Kudos
Reply