I accidently overwrote the ld file in /usr/bin. I then removed the file and reinstalled binutils. Now I get the error in the title when I try to compile a C++ file with g++.
The ld file is present in the /usr/bin directory, although it looks like a broken symlink. It points to a file called x86_64-linux-gnu-ld, which I am unable to find anywhere. How do I fix this?