Compiler error: / usr/bin/ld: cannot find-lc
Occasionally encounter an error / usr/bin/ld: cannot find-lc while compiling, as follows:
The view is caused by not installing the static library glibc-static, which can be installed in the compilation:
Installation method:
Yum install glibc-static-y
Then the error will not be reported when compiling: