Linker error (DSO missing)

Chris via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Oct 19 07:52:42 PDT 2015


On Monday, 19 October 2015 at 14:39:51 UTC, David Nadlinger wrote:
> On 19 Oct 2015, at 16:30, Chris via digitalmars-d-ldc wrote:
>> I keep getting this weird error with LDC. libogg is installed 
>> on my machine, I have it listed in the dub.json file under 
>> "libs", and it works fine when compiled with dmd (2.067.1), 
>> both release and debug.
>>
>> Do I have to pass anything else?
>
> Make sure the linker command lists libogg *after* libsndfile 
> (LDC -v shows you the command, same for DMD).
>
> To get some idea about what could be going on, you might want 
> to add -Wl,--verbose to the gcc command used for linking.
>
>  — David

Thanks for the confirmation that it might just be a case of the 
wrong order. I too think that it's a matter of ordering the libs 
correctly, however, I keep getting all sorts of linker errors 
when re-ordering the libs.

Now I'll have to figure out which order is correct.


More information about the digitalmars-d-ldc mailing list