How to link to libdl under linux
MrSmith
mrsmith33 at yandex.ru
Mon Dec 16 01:55:48 PST 2013
On Monday, 16 December 2013 at 07:36:12 UTC, Jacob Carlborg wrote:
> On 2013-12-16 01:54, Danny Arends wrote:
>
>> Pass it depending if you use rdmd or dmd
>>
>> -L-ldl
>>
>> or
>>
>> -ldl
>
> It's -L-ldl regardless of it's rdmd or dmd.
now i'm getting this error:
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_416_4ee.o):
In function `_D8derelict4util9sharedlib13LoadSharedLibFAyaZPv':
/home/andrey/anchovy/deps/derelict-fi-master/../../../.dub/packages/derelict-util-1.0.0/source/derelict/util/sharedlib.d:60:
undefined reference to `dlopen'
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_417_5d1.o):
In function `_D8derelict4util9sharedlib15UnloadSharedLibFPvZv':
/home/andrey/anchovy/deps/derelict-fi-master/../../../.dub/packages/derelict-util-1.0.0/source/derelict/util/sharedlib.d:64:
undefined reference to `dlclose'
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_418_396.o):
In function `_D8derelict4util9sharedlib9GetSymbolFPvAyaZPv':
/home/andrey/anchovy/deps/derelict-fi-master/../../../.dub/packages/derelict-util-1.0.0/source/derelict/util/sharedlib.d:68:
undefined reference to `dlsym'
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_419_463.o):
In function `_D8derelict4util9sharedlib11GetErrorStrFZAya':
/home/andrey/anchovy/deps/derelict-fi-master/../../../.dub/packages/derelict-util-1.0.0/source/derelict/util/sharedlib.d:72:
undefined reference to `dlerror'
collect2: error: ld returned 1 exit status
--- errorlevel 1
More information about the Digitalmars-d-learn
mailing list