6

I have Fedora 27. I am building something from source. (It is https://github.com/xmrig/xmrig-nvidia if that matters).

Make gets to linking and then fails with this message:

/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

The packages libstdc++ and libstdc++-devel are installed. Their 32-bit versions, just in case, are now also installed. I still get the message.

What can I do to fix this? Thanks!

10

Okay, I found what file it's looking for using strace, and the answer was libstdc++.a , so I fixed it by installing the libstdc++-static package

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.