如果虚参中出现了字符串,则有两种传递方式。一种是根据fortran中的标准,同时传递字符串内容和长度,这时,fortran中的子程序定义为:
subroutine sub_name(x1,x2,str,x3, x4)
!dec$attributes dllexport::sub_name
如果虚参中出现了字符串,则有两种传递方式。一种是根据fortran中的标准,同时传递字符串内容和长度,这时,fortran中的子程序定义为:
subroutine sub_name(x1,x2,str,x3, x4)
!dec$attributes dllexport::sub_name