crt1.o: No such file: No such file or directory

By  |  2 Comments

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:
apt-get install libc6-dev

On Fedora:

$ locate crt1.o
/usr/lib/crt1.o

On Ubuntu:
apt-get install libc6-dev

{ If not root, sudo apt-get install libc6-dev }

  • Vlaki

    And what if I use Windows 7?

  • mohannad

    already i have libc6-dev on ubuntu and still get the same error, please advice.