Suse系统gcc编译问题

2020-11-17  本文已影响0人  蒙浩

suse 12.4系统,编译的时候报错:
/usr/bin/ld: cannot find crt1.o: No such file or directory
ERROR: CMake (Debug):
ERROR: CMake (Debug): /usr/bin/ld: cannot find crti.o: No such file or directory
ERROR: CMake (Debug):
ERROR: CMake (Debug): /usr/bin/ld: cannot find -lc
ERROR: CMake (Debug):
ERROR: CMake (Debug): /usr/bin/ld: cannot find crtn.o: No such file or directory
ERROR: CMake (Debug):
ERROR: CMake (Debug): collect2: error: ld returned 1 exit status
ERROR: CMake (Debug):
ERROR: CMake (Debug): ninja: build stopped: subcommand failed.

解决:
zypper install glibc-devel

上一篇 下一篇

猜你喜欢

热点阅读