Software Archive
Read-only legacy content
17060 Discussions

DLLs from Modules

rahzan
New Contributor I
385 Views
I'd like to make a DLL containing a single module,
The doc is good on routines and common blocks but it is not explicit on modules.

Please note the ?'s

module M
(is there a dllexport statement for M?)
real, allocatable:: A(:) ! the client will allocate this, is this form ok?
integer B
(what is the export statment for A and B??)
contains
subroutine X
dllexport X ! I assume this is correct as usual (?)
...
end sub X
end module
0 Kudos
1 Reply
rahzan
New Contributor I
385 Views
The Doc states that to export the data in a module each individual variable must be DLLEXPORTed.
The subroutines go as usual.
0 Kudos
Reply