undefined reference to `strtod_l'
Created by: imistyrain
按照cxx demo中提到的步骤执行时,编译库通过,mask_detection编译通过并运行成功 但是编译mobile_full时出现错误:
/Users/***/Library/Android/sdk/ndk/16.1.4479499/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-g++ --sysroot=/Users/***/Library/Android/sdk/ndk/16.1.4479499/platforms/android-24/arch-arm64 -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=23 -fexceptions -frtti -std=c++11 -fopenmp -O3 -DNDEBUG -fPIE -pie -Wl,--gc-sections mobilenetv1_full_api.o -o mobilenetv1_full_api ../../../third_party/gflags/lib/libgflags.a -L../../..//cxx/lib/ -lpaddle_full_api_shared /Users/***/Library/Android/sdk/ndk/16.1.4479499/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a /Users/***/Library/Android/sdk/ndk/16.1.4479499/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++abi.a -latomic -pthread -ldl -llog -lz
/Users/***/Library/Android/sdk/ndk/16.1.4479499/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(locale.o): In function `float std::__ndk1::__do_strtod<float>(char const*, char**)':
/Volumes/Android/buildbot/src/android/ndk-release-r16/external/libcxx/include/locale:807: undefined reference to `strtof_l'
/Users/***/Library/Android/sdk/ndk/16.1.4479499/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a(locale.o): In function `double std::__ndk1::__do_strtod<double>(char const*, char**)':
/Volumes/Android/buildbot/src/android/ndk-release-r16/external/libcxx/include/locale:813: undefined reference to `strtod_l'
collect2: error: ld returned 1 exit status
make: *** [mobilenetv1_full_api] Error 1
PS:后面的mobile_light也可以编译通过, 但是由于需要上述步骤产生进行模型转化,导致无法继续demo