I have a third-party library written by C and I want to use it in my Android project by JNI. The issue is that a error occured when I compile it like below:
error: undefined reference to 'pthread_testcancel'
and the code is
#if !defined(WIN32) && !defined (WINCE) && !defined(ITRON) && !defined(BTRON) && !defined(TENGINE) && !defined(PROCESS_BASE)
pthread_testcancel();
#endif
And only this method compile failed, some other methods are all ok like pthread_kill
, pthread_join
, pthread_create
...
Anybody can help me to resolve it? Thanks very well.