Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

DLLs from Modules

rahzan
New Contributor I
397 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
397 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