来自
的文件/home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/stdio.h:55,
from test_cl.cpp:21:
/home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/sys/types.h:88:
error: conflicting declaration 'typedef unsigned int size_t'
/home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/machine/_types.h:44:
error: 'size_t' has a previous declaration as 'typedef long unsigned int size_t'
答案 0 :(得分:1)
为什么不尝试使用不同的名称“size_t”,因为我认为_types.h文件中存在相同的声明。所以它正在给冲突。