Compilation Errors with ROOT V6

Issue #114 resolved
Laurie Nevay created an issue

BDSIM won't compile properly (strictly robdsim part) with root version 6. I propose we set a maximum version in the configuration so the user knows and it prevents this.

Until we have root 6 support, this will protect us.

Comments (4)

  1. Jochem Snuverink

    I can reproduce and compiler error is:

    /Users/jsnuverink/Documents/bdsim/include/BDSSamplerHit.hh:4:10: fatal error: 
          'G4VHit.hh' file not found
    #include "G4VHit.hh"
    

    Seems something is different with the preprocessor flags in root6. Needs to be checked better. For now configuration protection has been added to robdsim.

  2. Laurie Nevay reporter

    We now have build / configuration protection against root 6 in the latest develop build soon to be v0.92 which will prevent this from happening in future.

    Eventually, it'd be good to support (introduce build options for..) root v6 as I believe what we use in root isn't specific to either version but just the dictionary generation.

  3. Jochem Snuverink

    The problem was that rootcint6 does not define the preprocessor __MAKECINT__ that we rely on in rootcint5. I couldn't find the equivalent variable for rootcint6 (not well documented). I added this preprocessor by hand now in cmake. Perhaps not so elegant, but works for the moment.

  4. Log in to comment