DMD on linux? (more problems)
Jesse Phillips
jessekphillips+D at gmail.com
Wed Mar 2 16:24:59 PST 2011
Sean Eskapp Wrote:
> I'm still having issues with the linux dmd. Here's the relevant part
> of the output:
>
> ...
> function func
> function func
> gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker -
> L/usr/lib32 -Xlinker -L/usr/lib64 -Xlinker --no-warn-search-mismatch
> -Xlinker --export-dynamic -lrt -lphobos2 -lpthread -lm
> /usr/bin/ld: cannot find -l-Xlinker
> collect2: ld returned 1 exit status
> --- errorlevel 1
> make[1]: *** [all] Error 1
> make[1]: Leaving directory
> ...
>
> Any help is appreciated.
I think the part LD is tripping up on is "-m32 -l -Xlinker"
So it seems you are calling dmd incorrectly or modified dmd.conf incorrectly as there is no argument after -l so LD thinks you want to link against lib-Xlinker.
More information about the Digitalmars-d-learn
mailing list