当前位置: 动力学知识库 > 问答 > 编程问答 >

fortran - Call old F77 routines from F90 main program

问题描述:

I have to use some old 77 routines in my F90 code.

In the main program, is it mandatory to declare the 77 subroutines as "external"?

cause otherwise it says "This name does not have a type, and must have an explicit type".

网友答案:

Your error message seem to imply that the subroutine you are calling has been used as a function. The problem would be in your calling statement. Likely you have accidentally used a subroutine as a function, or made a typo in the program.

分享给朋友:
您可能感兴趣的文章:
随机阅读: