2

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'
4
  • Would you tell us some detail also. Commented Sep 27, 2011 at 5:49
  • i just include <stdio.h> in my .cpp file , and compile it . Commented Sep 27, 2011 at 5:50
  • 1
    can you give us the code. I think the problem is that you include sys/types.h. Please provide the code as well. Commented Sep 27, 2011 at 5:56
  • in my cpp file ,it just have one code : #include<stdio.h> Commented Sep 27, 2011 at 5:59

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.