- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If compile the codes mylib.f to dll type with the following command:
ifort /dll /exe:mylib.dll mylib.f
how to link the program that need the mylib.dll with ifort
command?
ifort /dll /exe:mylib.dll mylib.f
how to link the program that need the mylib.dll with ifort
command?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you just add the'mylib.lib' file, generated when youcreate the DLL,toyour FORTRANproject and ensure all the routines that you need to access fromthe DLLare named as DLLIMPORT 'ed names in your fortran code using compiler directives inside INTERFACE blocks for the routines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you ,anthonyrichards. Your advice works !
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