On Monday, 10 February 2020 at 04:41:31 UTC, Andre Pany wrote:
Is this a bug with LDC and DMD, or is it not allowed
to dynamically call a SO from a statically build executable on linux

On Unix systems it is not possible to dynamically load a library shared by a static executable, I don't know if it works differently for Windows.

This is because it is absolutely necessary to link libdl dynamically, you cannot link static.

For GNU/Linux systems there is this alternative to dlopen/dlsym that does not require dynamic link: https://www.gnu.org/software/libtool/manual/html_node/Dlpreopening.html

Reply via email to