- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok,I guess I must export every module procedure individually or alternatively use a static library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

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