I'm trying to add a module system to DMildew because the core runtime is over 50 MB in the debug build. Libraries would be written in regular D and optionally dynamically loaded by a regular D application that links to the core static library (the DMildew runtime).
Shared library module system with dub
Pillager86 via Digitalmars-d-learn Mon, 01 Mar 2021 16:45:34 -0800
What is the correct multi-platform way to build one dub project
as a shared library, and load said shared library in a separate
dub project? So far I am able to load a shared library and run a
function from it (had to extern(C) it to get the symbol to load)
by using "targetType":"dynamicLibrary" in the shared library
project, but the main program exits with code -11 and if I don't
unload the library manually I get a weird "Aborting from
src/rt/sections_elf_shared.d(500) DSO being unregistered isn't
current last one.Program exited with code -6" error that Google
knows nothing about.
- Shared library module system with dub Pillager86 via Digitalmars-d-learn
- Re: Shared library module system w... Pillager86 via Digitalmars-d-learn
- Re: Shared library module syst... Pillager86 via Digitalmars-d-learn
- Re: Shared library module ... Pillager86 via Digitalmars-d-learn
- Re: Shared library mod... evilrat via Digitalmars-d-learn
- Re: Shared library module system w... Imperatorn via Digitalmars-d-learn
- Re: Shared library module syst... Pillager86 via Digitalmars-d-learn