On Sunday, 3 July 2022 at 16:48:52 UTC, frame wrote:

Only the -H switch or manual linker command generates a valid link to the DLL with DMD but then it's missing all the other library contents (also it needs `SimpleDllMain` or bails out linking errors to `_calloc` and Windows symbols) :\

`dmd -shared` / `dmd -H -shared` seems to work too (library contains link to DLL). Don't know why I had in mind that it would fail - maybe it did in the past.

However both DMD and LDC produces questionable header files for this task.

Reply via email to