From 0c5edf55156c26d5b95ad749e77db1e8f3530c89 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Wed, 23 Nov 2022 14:35:29 -0500 Subject: [PATCH] [root6] Fix undeclared identifier 'chain' in StarDb/AgMLGeometry/Geometry...C macro (#448) See errors reported in ROOT6_test_ignore_fail (120): ``` In file included from input_line_656:1: In file included from /star-sw/StarDb/AgMLGeometry/Geometry.y2021a.C:2: /star-sw/StarDb/AgMLGeometry/CreateGeometry.h:15:8: error: use of undeclared identifier 'chain' if (chain) { filename = chain->GetFileOut(); if ( filename=="" ) filename = chain->GetFileIn(); } ^ /star-sw/StarDb/AgMLGeometry/CreateGeometry.h:15:29: error: use of undeclared identifier 'chain' if (chain) { filename = chain->GetFileOut(); if ( filename=="" ) filename = chain->GetFileIn(); } ^ /star-sw/StarDb/AgMLGeometry/CreateGeometry.h:15:81: error: use of undeclared identifier 'chain' if (chain) { filename = chain->GetFileOut(); if ( filename=="" ) filename = chain->GetFileIn(); } ``` --- StarDb/AgMLGeometry/CreateGeometry.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/StarDb/AgMLGeometry/CreateGeometry.h b/StarDb/AgMLGeometry/CreateGeometry.h index cb11f0082b6..ee7a0c580fc 100644 --- a/StarDb/AgMLGeometry/CreateGeometry.h +++ b/StarDb/AgMLGeometry/CreateGeometry.h @@ -1,3 +1,7 @@ +#include "StBFChain/StBFChain.h" + +extern StBFChain* chain; + /** * Adapted from StarDb/VmcGeometry/CreateGeometry.h */