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

making DLL from a MODULE

mrhadian
Beginner
402 Views
Hi everybody!
I am using Compaq Visual Fortran. I made my code in different subroutines and shared the variables by using MODULE. The Module is like:
MODULE VAR_DEF
IMPLICIT NONE
INTEGER:: NI,NJ,NIM1,NJM1,NIM2,NJM2
REAL*8::RESORU,RESORV,RESORM
REAL*8,ALLOCATABLE,SAVE,DIMENSION(:,:)::X,Y,H,Z,P,F1,F2
END MODULE VAR_DEF
And I use it in most of my subroutines using USE command.
For using the memory efficiently I defined the dimensions in the above method and allocate them in a subroutine when the code is running and read the information from a file.
Now, I wan to make DLL from my subroutines individually. When I want to make DLL from a subroutine the compiler ask me about the MODULE I used in the subroutine. I tried to make a DLL from my above MODULE and import it in the subroutine while I want to make DLL from that subroutine, but the compiler says: the DLLEXPORT for a MODULE is acceptable but has no effect.
Could you please let me know how I can shared the module in my DLL subroutines?
Thanks for your help in Advance,
Hadian
0 Kudos
0 Replies
Reply