crt1.o: No such file: No such file or directory
While using gcc on a newly installed system you may get:/usr/bin/ld: crt1.o: No such file: No such file or directory
This is a common problem, but with a simple solution.
On debian/Ubuntu:
apt-get install libc6-dev
On Fedora:
$ locate crt1.o
/usr/lib/crt1.o
$ rpm -qf /usr/lib/crt1.o
glibc-devel-X.X.X-XX
Then install the package glibc-devel-X.X.X-XX using yum, rpm, etc
本文介绍了解决使用gcc时遇到的crt1.o文件缺失错误的方法。针对Debian/Ubuntu系统,可通过安装libc6-dev包来解决;对于Fedora系统,则需要找到对应版本的glibc-devel包进行安装。
4150

被折叠的 条评论
为什么被折叠?



