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.

Attachment: signature.asc
Description: PGP signature

Reply via email to