Homebuilt dmd fails to link my dub application

rikki cattermole rikki at cattermole.co.nz
Sun Mar 25 12:10:58 UTC 2018


On 26/03/2018 1:05 AM, Nordlöw wrote:
> If my homebuilt dmd fails to build my dub project with message
> 
> /usr/bin/ld: error: 
> .dub/build/application-unittest-linux.posix-x86_64-dmd_2079-C9019ECA621321CC168B385F53D82831/knetquery.o: 
> requires dynamic R_X86_64_32 reloc against 
> '_D6object9Throwable7__ClassZ' which may overflow at runtime; recompile 
> with -fPIC
> 
> what have I done wrong?
> 
> Where should I add the -fPIC switch?

-fPIC needs to go into dmd's configuration file.


More information about the Digitalmars-d-learn mailing list