Samuel
Samuel

Reputation: 6227

compile error on android

In file included from

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

Upvotes: 2

Views: 1030

Answers (1)

change_is_necessity
change_is_necessity

Reputation: 707

why dont you try different name "size_t" since i think the same declaration is present in the _types.h file. so it is giving the conflict.

Upvotes: 1

Related Questions