Replies: 2 comments
-
Since you are using make instead of CMake and mention header-only, I'm going to guess that you forgot to link a library. But I can't help you since you did not provide reproduction instructions. |
Beta Was this translation helpful? Give feedback.
-
There's a minimal repro, sorry about that!
Initially I did forget to link it, but then I realized that it works fine until I turn on ASan. I understand that not linking might not be supported or something that y'all want to even entertain, but I thought I'd mention it since it's the only instance in the btree code where you choose to log instead of For example, I also ran into the strict-weak-ordering checks in |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
I'm attempting to integrate a
btree_multiset
into our project. So far I haven't needed to build or link the abseil project itself, the btree types seem to be header-only for the most part (yay!).However, once I got to testing I turned on ASan and ran into this compilation error:
I don't actually see any definition of
internal_log_function
, so I'm guessing it's generated or templated out somewhere during the full abseil build? In any case we don't need or want the logging at all, so I was hoping to basicallyin our code. Unfortunately that leads to a
'ABSL_INTERNAL_LOG' macro redefined
error since there's no#ifdef
check first.Since this is the only instance of logging in the btree types, I went ahead and swapped it out with an
assert()
that I think is more consistent with the rest of the btree code. Is there any interest in upstreaming this change and/or adding the ability to disable internal logging so that the btree containers can keep being header-only?Steps to reproduce the problem
I tried to repro on godbolt.org, but that correctly links in the full library. I did a straight up
git clone
into myvendor/
folder and started using it without any build config:What version of Abseil are you using?
20240116.2
What operating system and version are you using?
Linux, custom Gentoo
What compiler and version are you using?
What build system are you using?
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions