Getting . # error "No thread API"

63 views
Skip to first unread message

Neeraj garg

unread,
Jan 11, 2018, 10:30:57 AM1/11/18
to android-ndk
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



 
Reply all
Reply to author
Forward
0 new messages