Error: can't locate file for: -lcrt1.o

I seem to have a problem on my Mac with Xcode failing to build a project. It normally hangs on compiling the script, but sometimes gives an obscure error message:

“can’t locate file for: -lcrt1.o”

I say it is a problem on my Mac because I sent the project to a friend who was able to get it to build successfully. I’m using Xcode 1.1 on 10.3.2. I’ve cleaned the target multiple times, as well as trashing the previous build manually. I’ve uninstalled Xcode and reinstalled 1.0, but still get the same error. It occurs on previous versions of this project (which were working before), but does not occur when I create a new project do a simple build based on template.

I’ve tried trashing related preferences and several other tricks with no luck.

I’m at a loss other than re-installing the OS. Any other suggestions would be very much appreciated.

Ray

Ray,

In terminal type

ls /usr/lib/*.o

and is crt1.o included in the list files, if it is not then see if you can get a copy of that file. It seems odd because if it can’t find that library then I could imagine that you would be having lots of other problems with your mac.

The -l refers to the linker trying to load a library to link against.

Kevin

Kevin,

Thanks very much. I did grab the file off of a clean system, and it solved the problem.

Very strange that it had disappeared on me when I had not been doing anything unusual at all.

Thanks again,

Ray