Skip to content

Commit

Permalink
[root6] Fix undeclared identifier 'chain' in StarDb/AgMLGeometry/Geom…
Browse files Browse the repository at this point in the history
…etry...C macro (star-bnl#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();  }
```
  • Loading branch information
plexoos authored Nov 23, 2022
1 parent d9982dd commit 0c5edf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions StarDb/AgMLGeometry/CreateGeometry.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "StBFChain/StBFChain.h"

extern StBFChain* chain;

/**
* Adapted from StarDb/VmcGeometry/CreateGeometry.h
*/
Expand Down

0 comments on commit 0c5edf5

Please sign in to comment.