在编译过程中, 会报错#errorPleaseupgradeyourGNUcompilertoonethatsupports__declspec.
按照如下 做即可
1,在你引入pthread.h头文件出加上预编译,为什么呢?因为你的ndk里面已经有pthread 文件了
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <pthread.h>
#else
#include "include/pthread.h"
#endif
LOCAL_LDLIBS += -pthread
LOCAL_LDLIBS += -llog
3,顺利编译成功