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

Exporting a module from a .dll

David_Mccabe
Beginner
382 Views
Quick question here.
I have a module contained in a .dll and I would like to export all of the procedures in this module.
Infact I would like to export the module so that I can "use" it outside the .dll in another Intel fortran project.
I have tried the following:

[bash]module myModule
!dec$ attributes dllexport :: myModule

...module stuff...

end myModule[/bash]
to which I get the following warning:

Warning 1 warning #7645: Use of DEC$ ATTRIBUTES directive with module names is accepted, but has no effect.
Please could somebody tell me the correct way of doing this.
Thanks

0 Kudos
2 Replies
David_Mccabe
Beginner
382 Views
ok,I guess I must export every module procedure individually or alternatively use a static library
0 Kudos
Steven_L_Intel1
Employee
382 Views
That is correct - you cannot do a mass export of everything in a module, you must name the individual symbols you want exported. Also, the ATTRIBUTES DLLEXPORT directive must be in the scope where the symbol is declared. For procedures, this would be inside the procedure.
0 Kudos
Reply