abseil / abseil/abseil-cpp

Undefined symbols Android NDK On Unbuntu

未关闭
#766 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
C++
星标
18.1k
派生
3.2k
平均合并
20 小时 36 分钟
30 天内合并 PR
1

描述

[ 74%] Linking CXX shared library libabsl_flags_internal.so
CMakeFiles/flags_internal.dir/internal/flag.cc.o:flag.cc:vtable for absl::flags_internal::FlagImpl: error: undefined reference to 'absl::CommandLineFlag::IsRetired() const'
CMakeFiles/flags_internal.dir/internal/flag.cc.o:flag.cc:typeinfo for absl::flags_internal::FlagImpl: error: undefined reference to 'typeinfo for absl::CommandLineFlag'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [absl/flags/CMakeFiles/flags_internal.dir/build.make:107: absl/flags/libabsl_flags_internal.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1518: absl/flags/CMakeFiles/flags_internal.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Compiler information:
cmake ../ -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/fcgame/android-ndk-r21d/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DBUILD_SHARED_LIBS=ON

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。