Build errors from #include files

已回答

I am using CLion on a Mac and trying to build a C++ project that I know builds cleanly on other machines. When I build it I get a lot of errors related to very low level core files. I have tried using both clang and gcc and both produce the same errors. I have also tried uninstalling and reinstalling CLion. Any ideas what could be causing the following errors?

 

In file included from In file included from /Users/alexisrussell/Downloads/project1-grade 2/Date.cpp/Users/alexisrussell/Downloads/project1-grade 2/project1-grade.cpp::511:
:
In file included from In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream::3838:
:
In file included from In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios::215215:
:
In file included from In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd::9090:
:
In file included from /usr/include/wchar.h:90:
In file included from /usr/include/wchar.h:90:
/usr/include/stdio.h:133:/usr/include/stdio.h19::133 :19:error : errorexpected ')':
expected ')'
int (* _Nullable _close)(void *); int (* _Nullable _close)(void *);

^ ^

/usr/include/stdio.h:133:6:/usr/include/stdio.h :133:note6: : to match this '('
note: to match this '('
int (* _Nullable _close)(void *);
^
int (* _Nullable _close)(void *);
^
/usr/include/stdio.h/usr/include/stdio.h::134134::1919:: errorerror: : expected ')'expected ')'

int (* _Nullable _read) (void *, char *, int); int (* _Nullable _read) (void *, char *, int);

^ ^

/usr/include/stdio.h/usr/include/stdio.h::134134::66:: notenote: : to match this '('to match this '('

int (* _Nullable _read) (void *, char *, int);
int (* _Nullable _read) (void *, char *, int); ^

^
/usr/include/stdio.h:134/usr/include/stdio.h::9134:: 9: error: error: duplicate member '_Nullable'
duplicate member '_Nullable'
int (* _Nullable _read) (void *, char *, int);
int (* _Nullable _read) (void *, char *, int);
^In file included from ^

/Users/alexisrussell/Downloads/project1-grade 2/Reminder.cpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:435:
In file included from /usr/include/stdio.h/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd::13390/usr/include/stdio.h::
:9In file included from 133:/usr/include/wchar.h: :9:90 :
note: noteprevious declaration is here:
previous declaration is here
/usr/include/stdio.h:133:19: error: expected ')'
int (* _Nullable _close)(void *); int (* _Nullable _close)(void *);

^ ^

/usr/include/stdio.h/usr/include/stdio.h::135135::2222:: [0;1;31merror: expected ')'
int (* _Nullable _close)(void *);error
: expected ')' ^

/usr/include/stdio.h:133:6: fpos_t (* _Nullable _seek) (void *, fpos_t, int);
note: ^
to match this '('
/usr/include/stdio.h:135:9: fpos_t (* _Nullable _seek) (void *, fpos_t, int);
note ^:
to match this '('
/usr/include/stdio.h:135:9: int (* _Nullable _close)(void *);
note ^:
to match this '('
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
/usr/include/stdio.h:134:19: error: expected ')'
/usr/include/stdio.h:135:12: /usr/include/stdio.h:error135: :12:duplicate member '_Nullable'
error: duplicate member '_Nullable'
int (* _Nullable _read) (void *, char *, int);
^
/usr/include/stdio.h:134:6: fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^note
: to match this '('
/usr/include/stdio.h: fpos_t (* _Nullable _seek) (void *, fpos_t, int);133
:9 ^:
note: /usr/include/stdio.hprevious declaration is here:133
:9: note: previous declaration is here
int (* _Nullable _read) (void *, char *, int);
^In file included from int (* _Nullable _close)(void *);

/Users/alexisrussell/Downloads/project1-grade 2/Calendar.cpp:11:
In file included from ^/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string
:435:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:90:
/usr/include/stdio.h:133:19: /usr/include/stdio.h:136error:: 19: expected ')'
error: expected ')'
/usr/include/stdio.h:134:9: error: duplicate member '_Nullable'
int (* _Nullable _write)(void *, const char *, int);
^
/usr/include/stdio.h:136:6: int (* _Nullable _close)(void *);note
: to match this '(' int (* _Nullable _read) (void *, char *, int);
^
^/usr/include/stdio.h

:133:9: note: previous declaration is here
/usr/include/stdio.h:133:6: note: to match this '('
int (* _Nullable _close)(void *); int (* _Nullable _write)(void *, const char *, int);

^ ^

int (* _Nullable _close)(void *);
^
/usr/include/stdio.h:135:22: error: /usr/include/stdio.h:expected ')'136:
9: error: /usr/include/stdio.h:duplicate member '_Nullable'134:
19: error: expected ')'
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
/usr/include/stdio.h:135: int (* _Nullable _write)(void *, const char *, int);9
: ^
int (* _Nullable _read) (void *, char *, int);
note: ^
to match this '('/usr/include/stdio.h:
133:/usr/include/stdio.h9::134 :6:note : previous declaration is herenote:
to match this '('
int (* _Nullable _close)(void *); fpos_t (* _Nullable _seek) (void *, fpos_t, int);

^ ^

int (* _Nullable _read) (void *, char *, int);
^
/usr/include/stdio.h:135:12: /usr/include/stdio.h:error134: :9:duplicate member '_Nullable'
error: duplicate member '_Nullable'
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
int (* _Nullable _read) (void *, char *, int);
^
^
/usr/include/stdio.h:/usr/include/stdio.h133::1339: note:: 9:previous declaration is here
note: previous declaration is here
int (* _Nullable _close)(void *);
^
int (* _Nullable _close)(void *);
^
/usr/include/stdio.h:136:19: error/usr/include/stdio.h: :135:expected ')'22:
error: expected ')'
int (* _Nullable _write)(void *, const char *, int);
^
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
/usr/include/stdio.h:136:6:/usr/include/stdio.h :135:note9: : to match this '('
note: to match this '('
fpos_t (* _Nullable _seek) (void *, fpos_t, int); int (* _Nullable _write)(void *, const char *, int);

^ ^

/usr/include/stdio.h:135/usr/include/stdio.h::12136:: 9: error: error: duplicate member '_Nullable'
duplicate member '_Nullable'
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
^
int (* _Nullable _write)(void *, const char *, int);
/usr/include/stdio.h ^:
133:9: /usr/include/stdio.h:note133: :9previous declaration is here:
note: previous declaration is here
int (* _Nullable _close)(void *);
^
int (* _Nullable _close)(void *);
^
/usr/include/stdio.h:136:19: error: expected ')'
int (* _Nullable _write)(void *, const char *, int);
^
/usr/include/stdio.h:136:6: note: to match this '('
int (* _Nullable _write)(void *, const char *, int);
^
int (* _Nullable _close)(void *);
^
/usr/include/stdio.h:136:9: /usr/include/stdio.h:error136: :19:duplicate member '_Nullable'
error: expected ')'
int (* _Nullable _write)(void *, const char *, int);
^
int (* _Nullable _write)(void *, const char *, int);
/usr/include/stdio.h ^:
133:9: /usr/include/stdio.h:136note:: 6:previous declaration is here
note: to match this '('
int (* _Nullable _close)(void *);
^
int (* _Nullable _write)(void *, const char *, int);
^
/usr/include/stdio.h:136:9: error: duplicate member '_Nullable'
int (* _Nullable _write)(void *, const char *, int);
^
/usr/include/stdio.h:133:9: note: previous declaration is here
int (* _Nullable _close)(void *);
^
/usr/include/stdio.h:477:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *, const char *, int),
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:478:28: error: redefinition of parameter '_Nullable'
fpos_t (* _Nullable)(void *, fpos_t, int),
^
/usr/include/stdio.h/usr/include/stdio.h::476477::2525:: noteerror: : previous declaration is hereredefinition of parameter '_Nullable'

int (* _Nullable)(void *, char *, int),
^
int (* _Nullable)(void *, const char *, int),
^
/usr/include/stdio.h/usr/include/stdio.h:477:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *, const char *, int),
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:478:28: error: redefinition of parameter '_Nullable'
fpos_t (* _Nullable)(void *, fpos_t, int),
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:479:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *));
^
/usr/include/stdio.h:476:25: [0;1;30m:note: 476:previous declaration is here25:
note: previous declaration is here
int (* _Nullable)(void *, char *, int),
int (* _Nullable)(void *, char *, int), ^

^
/usr/include/stdio.h:478:28: error: redefinition of parameter '_Nullable'
fpos_t (* _Nullable)(void *, fpos_t, int),
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:479:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *));
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:479:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *));
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:477:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *, const char *, int),
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:478:28: error: redefinition of parameter '_Nullable'
fpos_t (* _Nullable)(void *, fpos_t, int),
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
/usr/include/stdio.h:479:25: error: redefinition of parameter '_Nullable'
int (* _Nullable)(void *));
^
/usr/include/stdio.h:476:25: note: previous declaration is here
int (* _Nullable)(void *, char *, int),
^
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Date.cpp:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:17:
In file included from /usr/include/pthread.h:73:
/usr/include/pthread/qos.h:113:38: error: expected ')'
qos_class_t * _Nullable __restrict __qos_class,
^
/usr/include/pthread/qos.h:112:30: note: to match this '('
pthread_attr_get_qos_class_np(pthread_attr_t * __restrict __attr,
^
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Reminder.cpp:5:
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Reminder.h:7:
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Date.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:17:
In file included from /usr/include/pthread.h:73:
/usr/include/pthread/qos.h:113:38: error: expected ')'
qos_class_t * _Nullable __restrict __qos_class,
^
/usr/include/pthread/qos.h:112:30: note: to match this '('
pthread_attr_get_qos_class_np(pthread_attr_t * __restrict __attr,
^
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Calendar.cpp:13:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cassert:21:
In file included from /usr/include/assert.h:44:
/usr/include/stdlib.h:139:38: error: expected ')'
size_t __width, int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/stdlib.h:139:26: note: to match this '('
size_t __width, int (* _Nonnull __compar)(const void *, const void *));
^
In file included from /Users/alexisrussell/Downloads/project1-grade 2/project1-grade.cpp:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:17:
In file included from /usr/include/pthread.h:73:
/usr/include/pthread/qos.h:113:38: error: expected ')'
qos_class_t * _Nullable __restrict __qos_class,
^
/usr/include/pthread/qos.h:112:30: note: to match this '('
pthread_attr_get_qos_class_np(pthread_attr_t * __restrict __attr,
^
/usr/include/stdlib.h:158:22: error: expected ')'
int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/stdlib.h:158:10: note: to match this '('
int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/pthread/qos.h:185:38: error: expected ')'
qos_class_t * _Nullable __restrict __qos_class,
^
/usr/include/pthread/qos.h:184:25: note: to match this '('
pthread_get_qos_class_np(pthread_t __pthread,
^
/usr/include/pthread/qos.h:185:38: error: expected ')'
qos_class_t * _Nullable __restrict __qos_class,
^
/usr/include/pthread/qos.h:184:25: note: to match this '('
pthread_get_qos_class_np(pthread_t __pthread,
^
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Reminder.cpp:5:
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Reminder.h:7:
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Date.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:17:
/usr/include/pthread.h:216:54: error: redefinition of parameter '_Nullable'
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
/usr/include/pthread.h:216:28: note: previous declaration is here
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
/usr/include/pthread.h:217:11: error: redefinition of parameter '_Nullable'
void (* _Nullable)(void));
^
/usr/include/pthread.h:216:28: note: previous declaration is here
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
In file included from /Users/alexisrussell/Downloads/project1-grade 2/Date.cpp:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:17:
/usr/include/pthread.h:216:54: error: redefinition of parameter '_Nullable'
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
/usr/include/pthread.h:243:20: error: expected ')'
void * _Nullable * _Nonnull __restrict, size_t * __restrict);
^
/usr/include/pthread.h:242:26: note: to match this '('
int pthread_attr_getstack(const pthread_attr_t * __restrict,
^
/usr/include/pthread.h:247:20: error: expected ')'
void * _Nullable * _Nonnull __restrict);
^
/usr/include/pthread.h:246:30: note: to match this '('
int pthread_attr_getstackaddr(const pthread_attr_t * __restrict,
^
^
/usr/include/pthread.h:216:28/usr/include/pthread.h:326:40: error: expected ')'
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
^
/usr/include/pthread.h:326:19: note: to match this '('
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
^
/usr/include/pthread.h:340:50: error: redefinition of parameter '_Nullable'
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);
^
/usr/include/pthread.h:340:29: note: previous declaration is here
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);
^
:/usr/include/pthread.h:350:24: error: redefinition of parameter '_Nullable'
struct sched_param * _Nullable __restrict);
^
/usr/include/pthread.h:349:45: note: previous declaration is here
int pthread_getschedparam(pthread_t , int * _Nullable __restrict,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
note: previous declaration is here
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
/usr/include/pthread.h:217:11: error: redefinition of parameter '_Nullable'
void (* _Nullable)(void));
^
/usr/include/pthread.h:216:28: note: previous declaration is here
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
/usr/include/stdlib.h:270:/usr/include/pthread.h:243:20: error: expected ')'
void * _Nullable * _Nonnull __restrict, size_t * __restrict);
^
/usr/include/pthread.h:242:26: note: to match this '('
int pthread_attr_getstack(const pthread_attr_t * __restrict,
^
/usr/include/pthread.h:247:20: error: expected ')'
void * _Nullable * _Nonnull __restrict);
^
/usr/include/pthread.h:246:30: note: to match this '('
int pthread_attr_getstackaddr(const pthread_attr_t * __restrict,
^
38: error: expected ')'/usr/include/pthread.h:326:40: error: expected ')'
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
^
/usr/include/pthread.h:326:19: note: to match this '('
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
^
/usr/include/pthread.h:340:50: error: redefinition of parameter '_Nullable'
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);
^
/usr/include/pthread.h:340:29: note: previous declaration is here
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);
^
/usr/include/pthread.h:350:24: error: redefinition of parameter '_Nullable'
struct sched_param * _Nullable __restrict);
^
/usr/include/pthread.h:349:45: note: previous declaration is here
int pthread_getschedparam(pthread_t , int * _Nullable __restrict,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
/usr/include/stdlib.h:270:26: note: to match this '('
size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
/usr/include/pthread/qos.h:185:38: /usr/include/stdlib.h:294:22: error: expected ')'
int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/stdlib.h:294:10: note: to match this '('
int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/stdlib.h:297:22: error: expected ')'
error: expected ')'
qos_class_t * _Nullable __restrict __qos_class,
^
/usr/include/pthread/qos.h:184:25: int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
note: ^
to match this '('
/usr/include/stdlib.h:297:10: note: to match this '('
pthread_get_qos_class_np(pthread_t __pthread,
^
int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
/usr/include/stdlib.h:300:22: error: expected ')'
int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/stdlib.h:300:10: note: to match this '('
int (* _Nonnull __compar)(const void *, const void *));
^
/usr/include/stdlib.h:303:22: error: expected ')'
int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
/usr/include/stdlib.h:303:10: In file included from /Users/alexisrussell/Downloads/project1-grade 2/project1-grade.cppnote:: 11:
to match this '('In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream
:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base:17:
/usr/include/pthread.h:216:54: error: redefinition of parameter '_Nullable'
int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
/usr/include/pthread.h:216:28: note: previous declaration is here
/usr/include/stdlib.h:306:22: error: expected ')'
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
/usr/include/pthread.h:217:11: error: redefinition of parameter '_Nullable'
void (* _Nullable)(void));
^
/usr/include/pthread.h:216:28: note int (* _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);:
previous declaration is here ^

/usr/include/stdlib.h:306:10: note: to match this '('
int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void),
^
int (* _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
/usr/include/stdlib.h:309:22: error: expected ')'
int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^
/usr/include/stdlib.h:309:10: note: to match this '('
/usr/include/pthread.h:243:20: error: expected ')'
int (^ _Nonnull __compar)(const void *, const void *)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
^ void * _Nullable * _Nonnull __restrict, size_t * __restrict);

^
/usr/include/pthread.h:242:26: note: to match this '('
int pthread_attr_getstack(const pthread_attr_t * __restrict,
fatal error ^:
too many errors emitted, stopping now [-ferror-limit=]
/usr/include/pthread.h:247:20: error: expected ')'
void * _Nullable * _Nonnull __restrict);
^
/usr/include/pthread.h:246:30: note: to match this '('
int pthread_attr_getstackaddr(const pthread_attr_t * __restrict,
^
/usr/include/pthread.h:326:40: error: expected ')'
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
^
/usr/include/pthread.h:326:19: note: to match this '('
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
^
/usr/include/pthread.h:340:50: error: redefinition of parameter '_Nullable'
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);
^
/usr/include/pthread.h:340:29: note: previous declaration is here
int pthread_equal(pthread_t _Nullable, pthread_t _Nullable);
^
/usr/include/pthread.h:350:24: error: redefinition of parameter '_Nullable'
struct sched_param * _Nullable __restrict);
^
/usr/include/pthread.h:349:45: note: previous declaration is here
int pthread_getschedparam(pthread_t , int * _Nullable __restrict,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
20 errors generated.
make[3]: *** [CMakeFiles/project1.dir/Reminder.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/project1.dir/Date.cpp.o] Error 1
20 errors generated.
make[3]: *** [CMakeFiles/project1.dir/Calendar.cpp.o] Error 1
20 errors generated.
make[3]: *** [CMakeFiles/project1.dir/project1-grade.cpp.o] Error 1
make[2]: *** [CMakeFiles/project1.dir/all] Error 2
make[1]: *** [CMakeFiles/project1.dir/rule] Error 2
make: *** [project1] Error 2

0

Hi! There is some misconfiguration for your project. How do you build it outside of CLion, is it CMake-based?

0

请先登录再写评论。