Linker error (DSO missing)

Chris via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Oct 19 08:25:33 PDT 2015


On Monday, 19 October 2015 at 14:39:51 UTC, David Nadlinger wrote:

>
> Make sure the linker command lists libogg *after* libsndfile 
> (LDC -v shows you the command, same for DMD).

This did the trick. How are the libs ordered? I can see that the 
order of the libs in my dub.json file ("libs":["bla"]) is not the 
same as in the command that is generated. Does dub handle this or 
is it the compiler (checking for dependencies)?

I had to change the order of -lportaudio and -ljack manually. 
-ljack was listed before -lportaudio, giving rise to linker 
errors, of course. This is not optimal, I shouldn't have to do 
that.


More information about the digitalmars-d-ldc mailing list