DUB Different Library Name
serh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 11 23:27:01 PDT 2015
On Sunday, 12 July 2015 at 05:18:24 UTC, Mike Parker wrote:
> This has nothing to do with DMD, DUB, or linking :) Derelict
> loads the shared libraries at runtime through the system API
> (LoadLibrary on Windows and dlopen elsewhere). Each package has
> a default set of library names it looks for. I was under the
> impression that liballegro-x.x.so was the common form for
> Allegro, so either I was wrong or things are different on Arch.
>
> Regardless, the default library names can be overridden. Just
> past the library names you need in the call to load:
>
> ```
> DerelictAllegro5.load("liballegro.so.5.0");
> ```
>
> That should do the trick for now. In the meantime, I'll update
> the loader to include this form in the default library name
> list as soon as I get the chance.
Thank you so much! Can't believe I missed that part of
documentation.
I am not sure if Allegro uses the same name under platforms
different from Arch though.
More information about the Digitalmars-d-learn
mailing list