Cannot find -lpthread

1,942 views
Skip to first unread message

Vamsi

unread,
Jul 5, 2010, 3:36:55 AM7/5/10
to android-ndk
Hi All,

I am trying to build one CPP source file by using android-ndk-r4.
Its giving the following error.
"arm-eabi/bin/ld: cannot find -lpthread". Can anyone please help me.

Thanks,
Vamsi.

Christian Kuen

unread,
Jul 5, 2010, 4:22:20 AM7/5/10
to andro...@googlegroups.com
Hi Vamsi,

i guess, that you try to link the pThread library to you code but this is not neccesary because the bionic C library comes with its own pthread implementation. The C library includes support for pthread (<pthread.h>), so "LOCAL_LIBS := -lpthread" is not needed.

cheers
Chris




2010/7/5 Vamsi <vamsi...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Reply all
Reply to author
Forward
0 new messages