You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linker Error while using abseil from conan repository. I have build a simple project using abseil as dependency.
Conan install went smoothly. while building my sample project i got a linker error while using
absl::SimpleAtob function. Rest of the functions in abseil were working correctly.
project link. Here i have made two executable. one of them using absl::SImpleAtob and another using absl::flat_hash_set. The executable using flat hash set builds and runs fine. The problem is only with absl::SimpleAtob function.
Package and Environment Details (include every applicable attribute)
Package Name/Version: abseil/20210324.1
Operating System+version: Macos Catalina 10.15.6
Compiler+version: apple-clang 11.0
Conan version: conan 1.36.0
Python version: Python 3.9.5
cpp standard cpp17
generator used: cmake
Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)
clone the project. do conan install. run cmake. then build the project using make.
Logs (Include/Attach if Applicable)
Click to expand log
Undefined symbols for architecture x86_64:
"absl::lts_20210324::SimpleAtob(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool*)", referenced from:
_main in sample_program_giving_linker_error.cpp.o
ld: symbol(s) not found for architecture x86_64`
The text was updated successfully, but these errors were encountered:
Yes, I can reproduce this issue when C++ standard of consumer project is C++17. Try to set compiler.cppstd to 17 in your profile and build abseil from source.
thank you, it worked. is there a way to do this without setting cpp standard. because some of the packages that i use does not have cpp 17 support.
is there a workaround to do this.
Linker Error while using abseil from conan repository. I have build a simple project using abseil as dependency.
Conan install went smoothly. while building my sample project i got a linker error while using
absl::SimpleAtob function. Rest of the functions in abseil were working correctly.
project link. Here i have made two executable. one of them using absl::SImpleAtob and another using absl::flat_hash_set. The executable using flat hash set builds and runs fine. The problem is only with absl::SimpleAtob function.
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
clone the project. do conan install. run cmake. then build the project using make.
Logs (Include/Attach if Applicable)
Click to expand log
The text was updated successfully, but these errors were encountered: