subroutine SUBWITHOUTPARA() Bind(C,Name="SUBWITHOUTPARA")
implicit none
write(*,*) "In subWithoutPara"
return
end subroutine
#include "pch.h"
extern "C" {
void SUBWITHOUTPARA();
}
int main(void)
{
int a = 10;
SUBWITHOUTPARA();
return 0;
}
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |