I am getting an error when using the gcc compiler saying:

/usr/bin/ld: crt1.o: No such file. No such file or directory
collect2: ld returned 1 exit status

Can somebody please explain what this means and how it can be rectified.
Is it a problem with the compiler?
Thanks in advance.

Well can you tell us what you are trying to achieve here actually, I don't have much to go on from what you have posted !!
crt1.o looks to be an object file and it seems like your linker (ld) can't find it, but what are you actually doing when this error arrives would help us get a clearer picture.

This happens for any c code that i try to compile.
It even occurs for a basic program like displaying "hello" which im sure has no syntax errors in it.
When i compile using the command 'gcc filename.c' it gives the error.
Im using ubuntu 7.10 if that makes a difference.

Ok got a solution to your problem here with just a little googling.

It says to install the libc6-dev package.

Great thanks a lot....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.