- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
There is two Fortran DLL(Dynamic link library). Two Fortran DLL have each other one subroutine statement. Is One DLL able to import the other DLL?
링크가 복사됨
1 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
! A.f90 in dll project A subroutine foo() !dec$ attributes dllexport :: foo ! ... end subroutine foo! B.f90 in dll project B - in the IDE make project A a dependency of B
subroutine bar() !dec$ attributes dllexport :: bar interface subroutine foo() !dec$ attributes dllimport :: foo end subroutine foo end interface ! ... call foo() ! ... end subroutine bar
I think that'd do it. Further reading in the Programmer's Guide is recommended.
-John
