Unresolvable references to dlopen, dlclose etc

Mafi mafi at example.org
Fri Dec 6 05:25:13 PST 2013


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

Thank you! This has helped and I linked my program. As it turned 
out dmd invoked gcc to link and it supplied my -ldl argument 
first! I copy-pasted that command into a shell and moved the -ldl 
to the very end and it worked.

How do instruct dmd to do the same? As far as I understand the 
problem is that I specified the full path to the Derelict lib 
files by hand for each lib instead of using -L and -l. Libraries 
specifed like that are put after the gilen linker flags and 
before the buitlin ones (-lphobos etc). Is this a bug or is there 
any reason for dmd's behavior? It seems very wrong to me.



More information about the Digitalmars-d-learn mailing list