解决ndk-build : fatal error: 'iostream' file not found

出错信息如下:

./helloworld.h:1:10: fatal error: 'iostream' file not found
#include
         ^~~~~~~~~~
1 error generated.
make: *** [obj/local/armeabi-v7a/objs/helloworld/helloworld.o] Error 1

 原因:ndk-build阶段找不到标准库函数

解决方法:在Application.mk文件中指定标准库文件宏APP_STL := c++_static

ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk

编译通过

你可能感兴趣的:(debug,ndk)