/usr/bin/ld.gold: error: failed to find object -lz

kinke kinke at gmx.net
Tue Aug 6 11:41:25 UTC 2019


On Tuesday, 6 August 2019 at 11:25:29 UTC, Dukc wrote:
> I did notice that according to the above, `-lz` argument 
> apparently is due to an attempt by dub or ldc to pass `-z` to 
> the linker, but I'm just not getting ideas of how to 
> troubleshoot that further. Any ideas?

LDC definitely doesn't add that. zlib shouldn't be necessary, as 
Phobos contains an (IIRC, outdated) version of it. Anyway, you 
should be able to please the linker by installing a zlib package, 
such as `zlib1g` on Debian/Ubuntu.


More information about the Digitalmars-d-learn mailing list