ld: library not found for -lcrt1.10.6.o after running Intel icc compiler on OS Mavericks

Kevin Powell picture Kevin Powell · Oct 24, 2013 · Viewed 9.7k times · Source

I just upgraded from OS Mountain Lion to Mavericks, ran intel icc compiler, icc test.c, it said #include <time.h> is not found. So I checked the \usr folder, found \usr\include is missing and copyed include from my back to this folder, upgraded Xcode to Version 5.0.1. Then I compilered it again but still got a warning

ld: library not found for -lcrt1.10.6.o

What does it mean? How to fix that?

Answer

Bryce Anderson picture Bryce Anderson · Jan 16, 2014

I got a similar compiler error when installing MacPorts' mysql5 (missing lcrt). Jared Burrows is correct. The quickie way to do this is to open Terminal and enter:

xcode-select --install

I'm not sure the discussions.apple.com link is much help. Just seemed to be a bunch of folks arguing over whether static linking was 'sometimes ok' or 'bad programmer, no cookie.'

But here's a related Stack question, if mine doesn't work: Xcode 4.4 and later install Command Line Tools