pans-MacBook-Pro:oj pan$ clang --version clang version 6.0.1 (tags/RELEASE_601/final) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir: /usr/local/opt/llvm/bin
ProductName: Mac OS X ProductVersion: 10.13.3 BuildVersion: 17D47
GNU Emacs 25.3.1
c++函数就不行
c函数补全是ok的
大家帮忙看下怎么才能搞定。。新手。。
clang-err报错信息:
/usr/local/opt/llvm/bin/clang -fsyntax-only -Xclang -code-completion-macros -x c++ -I/usr/include/sys/ -Xclang -code-completion-at=-:26:17 -
In file included from :1: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/iostream:38: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/ios:215: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/iosfwd:90: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/wchar.h:119: In file included from /usr/include/wchar.h:92: In file included from /usr/include/_wctype.h:42: In file included from /usr/include/__wctype.h:62: /usr/include/_types/_wctype_t.h:32:9: error: unknown type name ‘__darwin_wctype_t’ typedef __darwin_wctype_t wctype_t; ^ In file included from :1: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/iostream:38: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/ios:215: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/iosfwd:90: In file included from /usr/local/Cellar/llvm/6.0.1/include/c++/v1/wchar.h:119: /usr/include/wchar.h:98:15: error: unknown type name ‘FILE’ wint_t fgetwc(FILE *); ^ /usr/include/wchar.h:99:44: error: unknown type name ‘FILE’ wchar_t *fgetws(wchar_t * __restrict, int, FILE * __restrict); ^ /usr/include/wchar.h💯24: error: unknown type name ‘FILE’ wint_t fputwc(wchar_t, FILE *); ^ /usr/include/wchar.h:101:40: error: unknown type name ‘FILE’ int fputws(const wchar_t * __restrict, FILE * __restrict); ^ /usr/include/wchar.h:102:11: error: unknown type name ‘FILE’ int fwide(FILE *, int); ^ /usr/include/wchar.h:103:14: error: unknown type name ‘FILE’ int fwprintf(FILE * __restrict, const wchar_t * __restrict, …); ^ /usr/include/wchar.h:104:13: error: unknown type name ‘FILE’ int fwscanf(FILE * __restrict, const wchar_t * __restrict, …); ^ /usr/include/wchar.h:105:14: error: unknown type name ‘FILE’ wint_t getwc(FILE *); ^ /usr/include/wchar.h:113:23: error: unknown type name ‘FILE’ wint_t putwc(wchar_t, FILE *); ^ /usr/include/wchar.h:117:24: error: unknown type name ‘FILE’ wint_t ungetwc(wint_t, FILE *);