Discussion:
Getting . # error "No thread API"
Neeraj garg
2018-01-11 11:02:59 UTC
Permalink
Hi,

I recently moved my codebase to C++14 and libc++_shared as stl library .
While compiling my code, i am getting following error:


* ndk-bundle/sources/cxx-stl/llvm-libc++/include/__config:825:4:
error: "No thread API"*


I checked the file __config . I found the following check


*// Thread API*
* #ifndef _LIBCPP_HAS_NO_THREADS*
* # if defined(__FreeBSD__) || \*
* defined(__NetBSD__) || \*
* defined(__linux__) || \*
* defined(__APPLE__) || \*
* defined(__CloudABI__) || \*
* defined(__sun__)*
* # define _LIBCPP_THREAD_API_PTHREAD*
* # else*
* # error "No thread API"*
* # endif // _LIBCPP_THREAD_API*
* #endif // _*


I tried the same thing with native android application . But i am not
getting the error. Is there any flag that is undefining the platform from
my codebase?


Thanks
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/78200e50-23a9-4b4a-8515-7a2eb7f231d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...