GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » compilation of macros
Re: compilation of macros [message #9838 is a reply to message #9837] Wed, 02 December 2009 17:25 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
I can tell you,
the "macros" are just macros, they are not compiled at all.
ROOT CINT is an interpreter, not a compiler, and sometimes it "fixes" eventual problems occurring in the macros. This is one case.
Another case is that there is no destruction at the end of the context, then in a macro you can define a variable inside brackets and access to it in the root line, or it defines not initialized variables.

Of course, the compiled code inside shared libraries is compiled then all the mentioned errors crash the compilation, therefore cannot occur.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TPC geant4
Next Topic: Small bug with cmake/config.sh
Goto Forum:
  


Current Time: Sun Dec 05 12:29:13 CET 2021

Total time taken to generate the page: 0.02077 seconds