我正在尝试使用Eclipse上的Cygwin g ++构建一些C ++代码。以下是我遇到的一些错误:
/usr/include/pthread.h:77:错误:pthread_attr_t' was not declared in this scope
/usr/include/pthread.h:77: error: expected primary-expression before ')' token
/usr/include/pthread.h:78: error: expected
,'或...' before '*' token
/usr/include/pthread.h:79: error: expected
,'或...' before '*' token
/usr/include/pthread.h:80: error: expected
,'或...' before '*' token
/usr/include/pthread.h:81: error: expected
,'或{{ 1}},'或...' before '*' token
/usr/include/pthread.h:82: error: expected
pthread_attr_t'未在此范围内声明
/usr/include/pthread.h:83:错误:')'令牌之前的预期primary-expression
/usr/include/pthread.h:84:错误:`pthread_attr_t'未在此范围内声明
/usr/include/pthread.h:84:错误:在','标记之前预期的primary-expression
/usr/include/pthread.h:84:错误:在“int”之前预期的primary-expression
这样的错误有很多,但并不包括所有错误。我想我需要在构建中更改一些设置,但不知道要改变什么。