c11

uchar.h file not found on OS X 10.9

无人久伴 提交于 2020-12-29 03:01:14
问题 I'm under the impression my C compiler supports C11 since it accepts the -std=c11 flag, $ cc --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix and uchar.h is part of the C11 standard, so I'd expect this program to compile, $ cat /tmp/esc.c #include <uchar.h> int main(void) {} But $ cc /tmp/esc.c /tmp/esc.c:1:10: fatal error: 'uchar.h' file not found #include <uchar.h> ^ 1 error generated. I tried locating the uchar.h

uchar.h file not found on OS X 10.9

青春壹個敷衍的年華 提交于 2020-12-29 03:00:38
问题 I'm under the impression my C compiler supports C11 since it accepts the -std=c11 flag, $ cc --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix and uchar.h is part of the C11 standard, so I'd expect this program to compile, $ cat /tmp/esc.c #include <uchar.h> int main(void) {} But $ cc /tmp/esc.c /tmp/esc.c:1:10: fatal error: 'uchar.h' file not found #include <uchar.h> ^ 1 error generated. I tried locating the uchar.h