diff --git a/unit-tests/hdr/test-hdr.cpp b/unit-tests/hdr/test-hdr.cpp index 94a976e76a9..17b9972024f 100644 --- a/unit-tests/hdr/test-hdr.cpp +++ b/unit-tests/hdr/test-hdr.cpp @@ -12,6 +12,13 @@ #include "../catch.h" #include "../unit-tests-common.h" +#include +#ifdef BUILD_SHARED_LIBS +// With static linkage, ELPP is initialized by librealsense, so doing it here will +// create errors. When we're using the shared .so/.dll, the two are separate and we have +// to initialize ours if we want to use the APIs! +INITIALIZE_EASYLOGGINGPP +#endif using namespace rs2;