Skip to content

Conversation

goto-bus-stop
Copy link

@goto-bus-stop goto-bus-stop commented Aug 23, 2020

This enum LOG_LEVELS declaration also included a variable name,
causing RuntimeTools/appmetrics#641. It ended
up defining a Log_levels variable in every compilation unit that
included "Log.h", which then caused duplicate symbols at link time.

I don't know if there was a reason for this definition, but it looks
like a bug to me … if not, maybe it can be fixed by just putting a
static in front? idk.

Thanks!

This `enum LOG_LEVELS` declaration also included a _variable name_,
causing RuntimeTools/appmetrics#641. It ended
up defining a `Log_levels` variable in every compilation unit that
included "Log.h", which then caused duplicate symbols at link time.

I don't know if there was a reason for this definition, but it looks
like a bug to me … if not, maybe it can be fixed by just putting a
`static` in front? idk.

Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant