ModuleInfo missing
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Thu Jul 17 17:18:04 UTC 2025
What you are attempting to do is what I refer to as positive annotation
exportation.
Where you annotate what you want exported and accessible outside the
current binary.
This does not work in D for D style code like you have written.
The recommended method is to use what I call negative annotation.
By applying the dllimport override switch set to all,
``-dllimport=all``, and the visibility modifier switch to public
``-visibility=public``.
You will need to set dllimport on both executable and shared library.
The visibility override switch only needs to be set on the shared library.
You will likely also need to set on both executable and shared library
that you want the shared runtime+phobos via ``--link-defaultlib-shared``.
More information about the Digitalmars-d-ide
mailing list