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 摘要。