I am creating an android native application within Android source code and I am trying to use a shared c++ library inside my native application, but I keep getting this error when I try to build the native application.
ld.lld: error: undefined symbol: std::allocator<char>::allocator()
In my shared library and Android.bp file I am using C++ 17
So far I have compiled my shared C++ library by setting D_GLIBCXX_USE_CXX11_ABI
flag to 1 and I also added this flag in my Android.bp file, but got the same error. I also added libc++ and libstdc++ in Android.bp file but still got the same error.
ComicBook Digital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.