android ndk 编译错误 seekdir,endian-ness functions
android ndk compilation error seekdir,endian-ness functions
我正在使用使用这些方法的 ndk-r10 编译代码:
seekdir(p,0)
但对于所有 ABI 都给出错误:armeabi、armeabi-v7a、arm64-v8a、x86、x86_64、mips、mips64。
File Included for this : #include <dirent.h>
字节顺序函数:
be16toh() - Giving error for armeabi-v7a,x86
le16toh()- Giving error for armeabi-v7a,x86
File Included for this : #include <endian.h>
这些方法是否可移植。
Error is : Undefined reference to <method name>
此外,包含的文件似乎没有这些方法的定义。
seekdir() 没有为 Android Bionic libc 实现 x86.The 另一种使用方式是
+closedir(dp)
+dp = opendir(scan_el_dir);
android-ndk 可以很好地编译和测试。
我正在使用使用这些方法的 ndk-r10 编译代码:
seekdir(p,0)
但对于所有 ABI 都给出错误:armeabi、armeabi-v7a、arm64-v8a、x86、x86_64、mips、mips64。
File Included for this : #include <dirent.h>
字节顺序函数:
be16toh() - Giving error for armeabi-v7a,x86
le16toh()- Giving error for armeabi-v7a,x86
File Included for this : #include <endian.h>
这些方法是否可移植。
Error is : Undefined reference to <method name>
此外,包含的文件似乎没有这些方法的定义。
seekdir() 没有为 Android Bionic libc 实现 x86.The 另一种使用方式是 +closedir(dp) +dp = opendir(scan_el_dir);
android-ndk 可以很好地编译和测试。