ld.lld: error: undefined symbol: std::__ndk1::__next_prime(unsigned long) Error while linking .a to EVS_APP
Closed this issue · 1 comments
Android code was checked out from here:
https://github.com/raspberry-vanilla/android_local_manifest/tree/android-13.0
EVS_APP build successfully.
We build individually our CMakelist based application, using Android Studio NDK toolchain and created libPVIS_r.a file. For building the libPVIS_r.a, the below attached script is used.
This static lib libPVIS_r.a is linked to EVS_APP using Android.bp file (/packages/services/Car/cpp/evs/apps/default/Android.bp) as follows:
But while building EVS_APP, we are getting following error:
**ld.lld: error: undefined symbol: std::__ndk1::__next_prime(unsigned long)
referenced by __hash_table:2381 (/home/che7/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__hash_table:2381)**
Could you please help to understand what went wrong here?
Note : The same libPVIS_r.a, if there is no function call to std::unordered_map from inside lib, the EVS_APP build is successful.
Closing as you vendor specific additions are not part of Raspberry Vanilla project.
You can contact me be email if you want to discuss hiring me for consulting/development work.