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
I'm Trying to compile using gcc 9.5.0 with cmake on vs code.
I've made a CMakeLists.txt which contains all of my external .a files including all the different absl libs.
when I try to compile one of my executable it keeps complaining on a linker error.
[build] /usr/bin/ld: /home/shay/vcpkg/installed/x64-linux/include/../debug/lib/libabsl_crc_cord_state.a(crc_cord_state.cc.o): in function absl::lts_20230125::crc_internal::CrcCordState::Checksum() const':
[build] /home/shay/vcpkg/buildtrees/abseil/src/20230125.0-ef0a6f1f30.clean/absl/crc/internal/crc_cord_state.cc:80: undefined reference to absl::lts_20230125::RemoveCrc32cPrefix(absl::lts_20230125::crc32c_t, absl::lts_20230125::crc32c_t, unsigned long)' [build] /usr/bin/ld: /home/shay/vcpkg/installed/x64-linux/include/../debug/lib/libabsl_crc_cord_state.a(crc_cord_state.cc.o): in function absl::lts_20230125::crc_internal::CrcCordState::NormalizedPrefixCrcAtNthChunk(unsigned long) const':
[build] /home/shay/vcpkg/buildtrees/abseil/src/20230125.0-ef0a6f1f30.clean/absl/crc/internal/crc_cord_state.cc:92: undefined reference to absl::lts_20230125::RemoveCrc32cPrefix(absl::lts_20230125::crc32c_t, absl::lts_20230125::crc32c_t, unsigned long)' [build] /usr/bin/ld: /home/shay/vcpkg/installed/x64-linux/include/../debug/lib/libabsl_crc_cord_state.a(crc_cord_state.cc.o): in function absl::lts_20230125::crc_internal::CrcCordState::Normalize()':
[build] /home/shay/vcpkg/buildtrees/abseil/src/20230125.0-ef0a6f1f30.clean/absl/crc/internal/crc_cord_state.cc:105: undefined reference to absl::lts_20230125::RemoveCrc32cPrefix(absl::lts_20230125::crc32c_t, absl::lts_20230125::crc32c_t, unsigned long)'
When I looked in the H files in the github repo i couldn't find the function RemoveCrc32cPrefix anywhere in the repository.
Need to figure out which .a and .h file is missing to sort this problem
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi There,
I'm Trying to compile using gcc 9.5.0 with cmake on vs code.
I've made a CMakeLists.txt which contains all of my external .a files including all the different absl libs.
when I try to compile one of my executable it keeps complaining on a linker error.
[build] /usr/bin/ld: /home/shay/vcpkg/installed/x64-linux/include/../debug/lib/libabsl_crc_cord_state.a(crc_cord_state.cc.o): in function
absl::lts_20230125::crc_internal::CrcCordState::Checksum() const':[build] /home/shay/vcpkg/buildtrees/abseil/src/20230125.0-ef0a6f1f30.clean/absl/crc/internal/crc_cord_state.cc:80: undefined reference to
absl::lts_20230125::RemoveCrc32cPrefix(absl::lts_20230125::crc32c_t, absl::lts_20230125::crc32c_t, unsigned long)' [build] /usr/bin/ld: /home/shay/vcpkg/installed/x64-linux/include/../debug/lib/libabsl_crc_cord_state.a(crc_cord_state.cc.o): in function
absl::lts_20230125::crc_internal::CrcCordState::NormalizedPrefixCrcAtNthChunk(unsigned long) const':[build] /home/shay/vcpkg/buildtrees/abseil/src/20230125.0-ef0a6f1f30.clean/absl/crc/internal/crc_cord_state.cc:92: undefined reference to
absl::lts_20230125::RemoveCrc32cPrefix(absl::lts_20230125::crc32c_t, absl::lts_20230125::crc32c_t, unsigned long)' [build] /usr/bin/ld: /home/shay/vcpkg/installed/x64-linux/include/../debug/lib/libabsl_crc_cord_state.a(crc_cord_state.cc.o): in function
absl::lts_20230125::crc_internal::CrcCordState::Normalize()':[build] /home/shay/vcpkg/buildtrees/abseil/src/20230125.0-ef0a6f1f30.clean/absl/crc/internal/crc_cord_state.cc:105: undefined reference to
absl::lts_20230125::RemoveCrc32cPrefix(absl::lts_20230125::crc32c_t, absl::lts_20230125::crc32c_t, unsigned long)'
When I looked in the H files in the github repo i couldn't find the function
RemoveCrc32cPrefix
anywhere in the repository.Need to figure out which .a and .h file is missing to sort this problem
Beta Was this translation helpful? Give feedback.
All reactions