How to call a function from a dll created with d ?

frame frame86 at live.com
Mon Jul 4 07:23:09 UTC 2022


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.


More information about the Digitalmars-d-learn mailing list