dmd -> ldmd2: /usr/bin/ld.gold: error: <source>.o: multiple definition of 'bool ldc.attributes...

kinke noone at nowhere.com
Sun Mar 7 12:47:45 UTC 2021


On Sunday, 7 March 2021 at 11:34:08 UTC, kdevel wrote:
> ./dmd -i -I=tillyscop:tillyscop/msgpack-d/src -O -g 
> -of=localscop.o -c tillyscop/scop.d tillyscop/scopserializer.d
>
> and
>
> ./dmd -i -of=pointless.o -g -c pointless/package.d
>
> "dmd" is a symlink to /opt/ldc2/bin/ldmd2

Ah, try using `-i=-ldc` instead of `-i` alone to manually exclude 
the ldc.* modules from being included.


More information about the Digitalmars-d-learn mailing list