DUB Different Library Name

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 11 22:18:48 PDT 2015


On Sun, 12 Jul 2015 02:14:04 +0000, serh wrote:

> As mentioned, I already have respective Allegro libs installed, but as
> liballegro.so.5.0 instead of liballegro-5.0.so and so on.
> The C++ linker sees them fine, but I am not sure how to make dmd/DUB see
> the correct libraries to link.

Derelict doesn't do compile-time linking with libraries, it loads 
libraries in runtime. rather controversal approach, but it seems to work 
better for windows. the side effect of it is that:

1. build system can't use pkg-config (or another *-config) utility to 
link with correct libraries.

2. if your library is old, and Derelict was written against newer with 
some API added -- badaboom! even if you never used that new API.

both problems are solvable, though. if you'll read Derelict documentation 
(and, maybe, sources) hard enough, you'll find a way to tell Derelict 
which library to load, and how to live with missing APIs. i can't give 
you a direct link, though, as i'm not using Derelict, but i'm pretty sure 
that it shouldn't be hard to find.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150712/8d084111/attachment.sig>


More information about the Digitalmars-d-learn mailing list