From 9999e3e5e19d552268cdd94160bf8065f2b0997c Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Mon, 21 Jun 2021 13:53:57 +0200 Subject: [PATCH] Fix compiler error A static const class member in a cout statement results in an undefined symbol when linking an executable using the class. The solution is to do a static cast of the variable in the cout statement. --- MQ/monitor/CbmDeviceMonitorReqT0.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MQ/monitor/CbmDeviceMonitorReqT0.cxx b/MQ/monitor/CbmDeviceMonitorReqT0.cxx index 2b84a99304..0a14253a1a 100644 --- a/MQ/monitor/CbmDeviceMonitorReqT0.cxx +++ b/MQ/monitor/CbmDeviceMonitorReqT0.cxx @@ -76,7 +76,7 @@ try { if ("" == fsTsBlockName) { // - LOG(info) << "Requesting TS using the SysId: 0x" << std::hex << kusSysId << std::dec; + LOG(info) << "Requesting TS using the SysId: 0x" << std::hex << static_cast<int>(kusSysId) << std::dec; } else { // -- GitLab