Linker error (DSO missing)

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Oct 19 07:39:37 PDT 2015


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


More information about the digitalmars-d-ldc mailing list