[Issue 22335] Exporting variables from DLLs is unusable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 4 06:30:08 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=22335

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
The current master emits this:

---
// D import file generated from 'dll.d'
module dll;
export extern __gshared int x;
extern (Windows) int DllMain(void*, uint, void*);
---

And your example is now working!

--


More information about the Digitalmars-d-bugs mailing list