From 1b955b0ba01955f64d711ef720f8e3178802b0ed Mon Sep 17 00:00:00 2001 From: Kolja Kauder Date: Mon, 10 Feb 2025 16:24:07 -0500 Subject: [PATCH] Added an explicit template instantiation that otherwise can get optimized away and lead to a linker error in gcc --- src/erhic/EventFactory.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/erhic/EventFactory.cxx b/src/erhic/EventFactory.cxx index 6df6475..b3b6cab 100644 --- a/src/erhic/EventFactory.cxx +++ b/src/erhic/EventFactory.cxx @@ -202,6 +202,8 @@ namespace erhic { } } + // Explicitly needed by gcc to not optimize it away and bug out + template Int_t EventFromAsciiFactory::FinishEvent(); } // namespace erhic