Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
[Solved] Lazarus - MacOS X - How to fix "file not found: /usr/lib/crt1.o" error message
Delphi, Lazarus, Free Pascal
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter
September 10, 2015 11:34 AM
I ran into this little snag after my Mac upgraded to El Capitan ... probably didn't properly upgrade XCode or whatever.
Anyhow ... when compiling my application, I would get this message and the linking would fail:
file not found: /usr/lib/crt1.o
This message basically hints to the fact that the so called "command line tools" of XCode are not installed.
First off, go to the App Store and make sure you have the latest XCode installed.
Next, open a Terminal window and execute:
xcode-select --install
After installation completed, try compiling and linking again, it should now work.