ld issues again

Brian Myers tarkawebfoot at gmail.com
Sun May 15 22:39:14 PDT 2011


Hello all,

Thanx for the assistance rendered before. I've removed all my previous installation attempt and installed
D 2.0 under Ubuntu with the one click installer. Now when compiling I get the following, which is
different from what I was getting before:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib32/libphobos2.a(getopt_714_340.o):
`_D3std6getopt10optionCharw' accessed both as normal and thread local symbol
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib32/libphobos2.a: could not read symbols: Success
collect2: ld returned 1 exit status
--errorlevel 1

I edited my dmd.conf because it seems to be trying to find libphobos2.a in the lib32 directory, and I
think it needs to find it in the lib64 directory. Don't know what the getopt error is about. Here is my
dmd.conf:


[Environment]

DFLAGS= -I/usr/include/d/dmd/phobos -I/usr/include/d/dmd/druntime/import -L-L/usr/lib64 -L-
L/usr/lib32 -L--no-warn-search-mismatch -L--export-dynamic -L-lrt

Should I change the -L-L to just /usr/lib since that's linked to /usr/lib64?

Thanx again

Brian


More information about the Digitalmars-d mailing list