Linker not working under dmd

Jonathan Marler johnnymarler at gmail.com
Mon Apr 7 09:26:33 PDT 2014


On Saturday, 5 April 2014 at 00:28:55 UTC, Adam D. Ruppe wrote:
> I had this problem too with the new dmd version on a CentOS 
> server.
>
> My solution was to link it manually. First, run your dmd 
> command with -v at the end to get the verbose output. The last 
> line it outputs will be the linking command.
>
> Copy/paste that and find where it does the -l:phobos2 or 
> whatever it exactly looks like. Delete it and instead use plain 
> -lphobos2, no weirdo colon.
>
> Then it should work. I changed my makefile to always compile 
> and link separately on that box so I wouldn't have to worry 
> about it later.
>
> (i also had to recompile phobos on that box because the libc 
> was too old for the qsort_r druntime now uses. If you have that 
> problem too, let me know and I'll tell you what I did.)

Thanks so much for the help, it's good to know I'm not alone in 
the D world.  It's hard being the first one at my job to start 
using D but this language has almost all the things that I've 
been wanting from C/C++.


More information about the Digitalmars-d mailing list