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

kdevel kdevel at vogtner.de
Sun Mar 7 12:55:27 UTC 2021


On Sunday, 7 March 2021 at 12:47:45 UTC, kinke wrote:
[...]
>> ./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.

Solved the issue. Many thanks!


More information about the Digitalmars-d-learn mailing list