What steps will reproduce the problem? this happened when I compile the openCore under android ndk2.1 1.because openCore need the android core file and framework base file ,so I add the path in the include path. 2.when compile the openCore/jni/oscl/oscl/osclio/src/oscl_file_native.cpp file,this happened.
3.the erro info is : GNU C++ (GCC) version 4.4.3 (arm-linux-androideabi) compiled by GNU C version 4.4.2, GMP version 5.0.5, MPFR version 2.4.1. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 521006852fc83979072cc63445481588 In file included from D:/workspace/openCore/jni/android/core/include/cutils/log.h:40, from D:/workspace/openCore/jni/android/frameworks_base/include/utils/Log.h:31, from D:/workspace/openCore/jni/oscl/oscl/osclio/src/oscl_file_native.cpp:30: D:/workspace/openCore/jni/android/core/include/cutils/uio.h:33: error: redefinition of 'struct iovec' E:/andriod_ndk/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-5/arch-arm/usr/include/linux/uio.h:19: error: previous definition of 'struct iovec'
the relationship is oscl_file_native.cpp->utils/Log.h->cutils/log.h->cutils/uio.h the linux/uio.h not be include,and the /android-5/arch-arm/usr/include/ is included by default. I can't do with it. I don't know why this happened? why do the uninclude linux/uio.h cause this problem.
Status: New
Labels:
Type-Defect
Priority-Medium