I have the below source code using std::future.
#include<future>
std::future<int> A;
However, when I try to compile it with NDK_TOOLCHAIN_VERSION := 4.8 in Application.mk file, it throws the error "std::future A" has incomplete type etc."
I tried looking up for future.h within the android-ndk-r9c folder, however, I couldn't find it. Does anyone know if NDK supports std::future at all? If so, which version has this support?
As mentioned in one of my above comments, I'm able to compile it by specifying armeabi-v7a as target instead of armeabi.
NDK_TOOLCHAIN_VERSION := 4.8
APP_STL := gnustl_static
APP_ABI :=armeabi-v7a
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments