Visual GDB 工程 使用ndk-build命令失败的解决方法

Visual GDB 工程编译正常,但使用ndk-build将会出错,出错信息如下:

D:/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/signal.h:119:23: er
ror: 'sigset_t' was not declared in this scope
 extern int sigpending(sigset_t *);
                       ^
D:/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/signal.h:119:33: er
ror: expected primary-expression before ')' token
 extern int sigpending(sigset_t *);
                                 ^
D:/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/signal.h:120:29: er
ror: 'sigset_t' does not name a type
 extern int sigsuspend(const sigset_t *);
                             ^
D:/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/signal.h:121:26: er
ror: 'sigset_t' does not name a type
 extern int sigwait(const sigset_t *set, int *sig);
                          ^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs
/armeabi/include/bits/gthr-default.h:48:0,
                 from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs
/armeabi/include/bits/gthr.h:148,
                 from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/incl
ude/ext/atomicity.h:35,
                 from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/incl
ude/bits/basic_string.h:39,
                 from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/incl
ude/string:52,



在Application.mk增加如下语句即可

APP_PLATFORM := android-10


你可能感兴趣的:(Visual GDB 工程 使用ndk-build命令失败的解决方法)