Ask Your Question

Revision history [back]

Make fails to load library

Somewhere in the make command:

/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xmrig-nvidia.dir/build.make:964: xmrig-nvidia] Error 1
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/xmrig-nvidia.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
[me@localhost build]$ sudo dnf install libstdc++-devel
Last metadata expiration check: 0:20:14 ago on Mon 15 Apr 2019 11:29:53 PM CEST.
Package libstdc++-devel-8.2.1-2.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[me@localhost build]$ sudo dnf install libstdc++
Last metadata expiration check: 0:20:22 ago on Mon 15 Apr 2019 11:29:53 PM CEST.
Package libstdc++-8.2.1-2.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!