- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I would like to call a subroutine storedin a DLL file from a fortran code, running under Linux. I have no idea on how to do that.
Could someoneplease write a small example that I can use?
Best Regards,
Paolo
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is simpler on Linux than on Windows. On Linux, "shared objects" (.so) are the equivalent of DLLs and you do not need special directives. Other than the creation of the .so files, you treat them as normal libraries. For details, see the Intel compiler documentation under Building Applications..Creating and Using Libraries..Creating Libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply, but the solution is not so clear to me....
I don't have to create a shared object as I already have a DLL that I need to plug into my fortran code.
I need to call a subroutine contained in the DLL from my fortran code, and I
don't know how to do that....
Best Regards,
Paolo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using Linux or Windows? A Windows DLL cannot be used on Linux.

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