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
网友评论