Closed Ri0n closed 3 years ago
Hi @Ri0n
Thanks for your PR! I am curious what method you used to compile the SDK? We test GCC / clang / MSVC in CI between different platforms and there does not appear to be any link failure, although this change does look correct to me.
The CI for OSX is failing with this PR but it is related to a change in CircleCI OSX support since our last release and looks unrelated to this PR.
Hi @Ri0n
Looking at this again more in-depth: this variable does not even need to be defined in ldinternal.h
. In the next release we will simply remove it.
Thanks!
Cool. it was Gentoo Linux with latest gcc and whatever linker comes by default
@Ri0n
The release from this morning should remedy your issue: https://github.com/launchdarkly/c-client-sdk/releases/tag/2.1.2
Sorry for the delay!
Thanks @hroederld Unfortunately I've left the project where it was used. But I'll ping the guys who are still there :)
I'm going to close this PR now. If you run into any other problems feel free to file an issue.
Declaring the callback variable without
extern
defined this variable in every compilation unit where this header was included. As result on the link stage same symbol appears in multiple object files and triggers link conflict/failure. Addingextern
make compilation succeed