很诡异的android编译错误

In file included from jni/…/…/Classes/app/AppDelegate.cpp:1:
In file included from jni/…/…/Classes/app/AppDelegate.h:4:
In file included from jni/…/…/cocos2d/cocos/3d/…\cocos2d.h:42:
In file included from jni/…/…/cocos2d/cocos/3d/…/base/CCRefPtr.h:30:
In file included from jni/…/…/cocos2d/cocos/3d/…\base/ccMacros.h:35:
In file included from jni/…/…/cocos2d/cocos/3d/…\base/CCConsole.h:42:
In file included from D:/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include\thread:97:
In file included from D:/android-ndk-r9d/sources/cxx-stl/llvm-libc++/libcxx/include__mutex_base:17:
D:/android-ndk-r9d/platforms/android-19/arch-arm/usr/include\pthread.h:271:36: error: unknown type name ‘sigset_t’
int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
^
D:/android-ndk-r9d/platforms/android-19/arch-arm/usr/include\pthread.h:271:51: error: unknown type name ‘sigset_t’
int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);

这是什么原因导致的?

未添加相应的include文件。

可是报的路径在NDK是怎么回事?

你只要知道这个本质错误就行了,就是找不到”sigset_t“的定义。至于如何让他找到,那是你需要调试的。