- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to export a data object in a DLL. The write-up in the Help is not very clear (to me) on this. My DLL source code looks something like this:
MODULE a
INTEGER,PARAMETER :: ip = 1
!DEC$ ATTRIBUTES DLLEXPORT :: ip
END MODULE
This program compiles fine but neither DUMPBIN nor DependencyWalker show ip as an exported symbol. Could someone advice on this?
Thanks,
Jon
MODULE a
INTEGER,PARAMETER :: ip = 1
!DEC$ ATTRIBUTES DLLEXPORT :: ip
END MODULE
This program compiles fine but neither DUMPBIN nor DependencyWalker show ip as an exported symbol. Could someone advice on this?
Thanks,
Jon
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ip is not a variable - it's a "named constant" and not something you can export. Remove the PARAMETER and it should do what you want. Note that the global name will be A_mp_IP, by default.

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