I solve the problem by using jni in android project.
I can't find any way to pass this error in pure C.(Maybe some one can find out??)
I new an android project and make jni call in this project.
Then writing all my C code in the jni and build it by ndk.
This is the only solution I found.