On OSX, I can't compile simple programs from the command-line when I use an externally-provided compiler (e.g. gcc, or a custom clang install). System headers like limits.h
cannot be found.
Example error messages:
fatal error: limits.h: No such file or directory
Or:
fatal error: stdio.h: No such file or directory
Or:
fatal error: 'stdlib.h' file not found
and so on.
What's wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…