can't compile anything: some file not found by ld.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
can't compile anything: some file not found by ld.
ok, so I've got my "hello world" program, written with nano, copied from a book.
I try to compile it by typing this:
gcc hello.c
and I get the message as follows:
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486+slackware-linux
/bin/ld:crt1.o: No such file: No such file or directory.
collect2: ld returned 1 exit status.
It's not my hello world program which is making the mistake, because other people sourcecodes make similar ouputs.
Through doing a bit of reading I found that ld is something that attaches files to my program. Anyway, I'd have thought that these files would have been included with the distro or with ld or with the compiler?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.