Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abseil-cpp, absl in thirdparty conflict with abseil-cpp, absl in unreal5 project #16450

Open
kdongin opened this issue Apr 9, 2024 · 1 comment

Comments

@kdongin
Copy link

kdongin commented Apr 9, 2024

i am trying to include protobuf lastest version 3.26.1 (ver 2024-04) in unreal 5. (i am using vs2022 community)

when i include protobuf using thirdparty abseil-cpp,
i face compile error C2373(redefinition). like below


Error C2373 'absl::container_internal::node_type': redefinition; different type modifiers TestProtoForUnreal C:\Users\blackstorm_kdongin\Documents\Unreal Projects\TestProtoForUnreal\Source\ThirdParty\abseilcpp\absl\container\internal\btree.h 1653

it seems that absl\container\internal\btree.h causes that error.
i assume that it conflicts with another absl\btree.h included unreal engine 5 some where.
i found out several same abseil in unreal engine 5.
could you fix or recommend a workaround????

@kdongin kdongin added the untriaged auto added to all issues by default when created. label Apr 9, 2024
@zhangskz
Copy link
Member

Are the other absl's in your project imported under a different name than com_google_absl?

Protobuf pulls in an absl version automatically via protobuf_deps.bzl if one is not already found per

if not native.existing_rule("com_google_absl"):

Perhaps you may need to rename / upgrade your other installs to com_google_absl to avoid multiple absl's causing problems here?

@zhangskz zhangskz added customer issue c++ and removed untriaged auto added to all issues by default when created. labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants