Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  22 Sep 2020, Frederik Wauters, Forum, INT INT32 in experim.h 
    Reply  22 Sep 2020, Konstantin Olchanski, Forum, INT INT32 in experim.h 
       Reply  09 Mar 2021, Andreas Suter, Forum, INT INT32 in experim.h 
          Reply  10 Mar 2021, Stefan Ritt, Forum, INT INT32 in experim.h 
             Reply  15 Mar 2021, Frederik Wauters, Forum, INT INT32 in experim.h 
                Reply  30 Mar 2021, Konstantin Olchanski, Forum, INT INT32 in experim.h 
Message ID: 1998     Entry time: 22 Sep 2020     In reply to: 1997     Reply to this: 2126
Author: Konstantin Olchanski 
Topic: Forum 
Subject: INT INT32 in experim.h 
> For my analyzer I generate the experim.h file from the odb.
> 
> Before midas commit 13c3b2b this generates structs with INT data types. compiles fine with my analysis code (using the old mana.cpp)
> 
> newer midas versions generate INT32, ... types. I get a 
> 
> ‘INT32’ does not name a type   
> 
> although I include midas.h 
> 
> how to fix this?

You could run experim.h through "sed" to replace the "wrong" data types with the correct data types.

You can also #define the "wrong" data types before doing #include experim.h.

I put your bug report into our bug tracker, but for myself I am very busy
with the alpha-g experiment and cannot promise to fix this quickly.

https://bitbucket.org/tmidas/midas/issues/289/int32-types-in-experimh

Here is an example to substitute things using "sed" (it can also do "in-place" editing, "man sed" and google sed examples)
sed "sZshm_unlink(.*)Zshm_unlink(SHM)Zg"

K.O.
ELOG V3.1.4-2e1708b5