- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
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
Hadian
Link Copied
0 Replies

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