- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Doc states that to export the data in a module each individual variable must be DLLEXPORTed.
The subroutines go as usual.
The subroutines go as usual.

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