ndk r12 beta mutex problem

600 views
Skip to first unread message

Sergey Kuratov

unread,
Apr 14, 2016, 2:38:54 AM4/14/16
to android-ndk
Today Android Studio updated ndk from r11c to r12 beta and I got a lot of problems (I use gcc 4.9 toolchain):

error: 'mutex' in namespace 'std' does not name a type
error: field 'm_noreThreadFuture' has incomplete type 'std::future<int>'
error: 'thread' in namespace 'std' does not name a type
...

Do we have any solution to fix it ?

James Swift

unread,
Apr 18, 2016, 9:57:51 AM4/18/16
to android-ndk
I had the same problem.

I added the define _GLIBCXX_HAS_GTHREADS and it solved it.

regards,
James

Alex Cohn

unread,
Apr 19, 2016, 4:09:11 PM4/19/16
to android-ndk

Alex Cohn

unread,
Apr 19, 2016, 4:09:11 PM4/19/16
to android-ndk
Thanks, pal! This applies to the "official" r12, too.

BR,
Alex Cohn
Reply all
Reply to author
Forward
0 new messages