- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
! 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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page