开发者

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/include

I 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜