How to link to libdl under linux

Mike Parker aldacron at gmail.com
Mon Dec 16 02:02:41 PST 2013


On 12/16/2013 6:55 PM, MrSmith wrote:
> On Monday, 16 December 2013 at 07:36:12 UTC, Jacob Carlborg wrote:

>
> 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

You're still not linking ld properly. It would help tremendously if you 
could show the command line you're using. Otherwise all people can do is 
make guesses about what *might* be wrong.


More information about the Digitalmars-d-learn mailing list