Unresolvable references to dlopen, dlclose etc

Jacob Carlborg doob at me.com
Fri Dec 6 04:59:31 PST 2013


On 2013-12-05 20:20, Mafi wrote:
> I am on fresh install of Linux Mint 16 64bit and I tried to compile some
> D code I have writen and I have problems ("Hello World" works btw). I
> uses Derelict (v2) and I have successfully compiled/linked/rurn my
> program on Windows 7 64bit. But on Linux I get errors about unresolved
> references to dlopen, dlclose etc. although I am linking against libdl
> (ld finds the so; I checked the verbose output).
>
> Interestingly libdl.so is empty by nm. I found the symbols in libc.
>
> I am compiling everything from scratch with the newest dmd (2.064.2 that
> is) with -m64 in my dmd.conf (doesn't work without either). I have
> posted on the Derelict forums
> (http://dblog.aldacron.net/forum/index.php?topic=864.0) but I don't
> think it is a Derelict specific problem. Pleas help me!

You can compile with the verbose flag, -v, to make sure it links as you 
expect it to. The linking command will be at the bottom of the output.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list