Re: Shared library module system with dub

2021-03-02 Thread Pillager86 via Digitalmars-d-learn
On Tuesday, 2 March 2021 at 10:00:46 UTC, Imperatorn wrote: On Tuesday, 2 March 2021 at 00:40:06 UTC, Pillager86 wrote: 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

Re: Shared library module system with dub

2021-03-02 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 2 March 2021 at 00:40:06 UTC, Pillager86 wrote: 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

Re: Shared library module system with dub

2021-03-01 Thread evilrat via Digitalmars-d-learn
On Tuesday, 2 March 2021 at 04:26:52 UTC, Pillager86 wrote: On Tuesday, 2 March 2021 at 04:13:31 UTC, Pillager86 wrote: On Tuesday, 2 March 2021 at 03:42:14 UTC, Pillager86 wrote: Update: the dub "dynamicLibrary" target option is busted on Windows and does not build anything at all. This

Re: Shared library module system with dub

2021-03-01 Thread Pillager86 via Digitalmars-d-learn
On Tuesday, 2 March 2021 at 04:13:31 UTC, Pillager86 wrote: On Tuesday, 2 March 2021 at 03:42:14 UTC, Pillager86 wrote: Update: the dub "dynamicLibrary" target option is busted on Windows and does not build anything at all. This should be filed as a bug. Update again: I got the Windows DLL

Re: Shared library module system with dub

2021-03-01 Thread Pillager86 via Digitalmars-d-learn
On Tuesday, 2 March 2021 at 03:42:14 UTC, Pillager86 wrote: Update: the dub "dynamicLibrary" target option is busted on Windows and does not build anything at all. This should be filed as a bug. Update again: I got the Windows DLL to build and run without crashing, but I don't know how to

Re: Shared library module system with dub

2021-03-01 Thread Pillager86 via Digitalmars-d-learn
Update: the dub "dynamicLibrary" target option is busted on Windows and does not build anything at all. This should be filed as a bug.