android ndk dirent.h how to include
I m building a c++ code wh开发者_StackOverflow中文版ich requires dirent.h I found that this file has been include SYSROOT = $(NDK)/platforms/android-/arch-arm/
$SYSROOT/usr/includeI want to know how to define SYSROOT so that i can specify it inside Android.mk to include usr/include
Please guide me in this process. Thanks Mohit
You don't need to add anything into the Android.mk file to use dirent.h. dirent.h is in a location where the compiler can already find it. Just use #include <dirent.h>
like you would normally, and it should be fine. If there's a problem, perhaps try updating your ndk to the newest version.
精彩评论