Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

How to link a dll type file ?

lyfhq
Beginner
353 Views
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?
0 Kudos
2 Replies
anthonyrichards
New Contributor III
353 Views
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.
0 Kudos
lyfhq
Beginner
353 Views
Thank you ,anthonyrichards. Your advice works !
0 Kudos
Reply