Compilation phobos errors with DMD 2.071,2.072 or dub

Ozan (ONS) via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 3 07:52:26 PDT 2016


Hi,

with a fresh Ubuntu 16.10 installation using "Hello, World" I got 
a list of following errors like:
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/libphobos2.a(thread_256_713.o): 
relocation R_X86_64_32 against symbol 
`_D6object9Throwable7__ClassZ' can not be used when making a 
shared object; recompile with -fPIC

Example: Using dmd 2.071 and dub; dub init appName; compile 
appName with dub.
Or direct with dmd

What I'm missing? Any hints?

Thanks & Regards, Ozan



More information about the Digitalmars-d-learn mailing list