Unable to compile NDK Andoird code with OpenCV. STD Cpp function undefined issue

Hi,

I am trying to integrate OpenCV ver 3_4_15 for my android project. I have added required binaries and header files from the native folder. I am facing cpp std function undefined error. Tried with multiple Android NDK options, but nothing is fixing the issue. The compile time build erros :

ld: error: undefined symbol: std::cerr

referenced by common.cpp
common.cpp.o:(carotene_o4t::internal::assertSupportedConfiguration(bool)) in archive jni/native/3rdparty/libs/arm64-v8a/libtegra_hal.a
referenced by common.cpp
common.cpp.o:(carotene_o4t::internal::assertSupportedConfiguration(bool)) in archive jni/native/3rdparty/libs/arm64-v8a/libtegra_hal.a
referenced by logger.cpp
logger.cpp.o:(cv::utils::logging::parseLogLevelConfiguration()) in archive jni/native/staticlibs/arm64-v8a/libopencv_core.a
referenced 15 more times

ld: error: undefined symbol: std::basic_ostream<char, std::char_traits >& std::operator<<<std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*)

referenced by common.cpp
common.cpp.o:(carotene_o4t::internal::assertSupportedConfiguration(bool)) in archive jni/native/3rdparty/libs/arm64-v8a/libtegra_hal.a
referenced by logger.cpp
logger.cpp.o:(cv::utils::logging::parseLogLevelConfiguration()) in archive jni/native/staticlibs/arm64-v8a/libopencv_core.a
referenced by logger.cpp
logger.cpp.o:(cv::utils::logging::parseLogLevelConfiguration()) in archive jni/native/staticlibs/arm64-v8a/libopencv_core.a
referenced 191 more times

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)