Re: rootcint gives: Error: cannot open file "TROOT.h" :0:

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 12 Dec 2006 19:34:24 +0100


Hi,

rootcint is as picky as some compilers: remove the space between -I and the path, i.e.

rootcint HepMCEventdict.cc -c \
-I../../2.0.2.2/CLHEP/HepMC/include/ -I$ROOTSYS/include/ HepMCEvent.h

should work.

Cheers, Axel.

Oliver Oberst wrote:
> Hello,
>
> I am working on a rootinterface for a montecarlo generator. I wrote my
> own "HepMCEvent" class which inherits from TObject. Now I want to fill a
> Tree with an HepMCEvent Branch with
>
> tree->Branch("EventBranch","HepMCEvent",&event,32000,99);
>
> in my Interface. the header of the Event (for now) is :
> ----------------------------------------------------------------
> #ifndef __HepMCEvent__
> #define __HepMCEvent__
>
> #include"TObject.h"
>
> #include "CLHEP/HepMC/GenEvent.h"
>
> class HepMCEvent : public TObject{
>
> public:
>
> HepMCEvent(HepMC::GenEvent *hepmc);
> ~HepMCEvent();
>
> private:
>
> int event_number;
> int signal_process_id;
> double alphaQCD;
> double alphaQED;
> int vertices_size;
>
> ClassDef(HepMCEvent,1) //Event structure
>
> };
>
> #endif
> ----------------------------------------------------------
> if I want to generate a dictionary with rootcint:
>
> promt> rootcint HepMCEventdict.cc -c
> -I ../../2.0.2.2/CLHEP/HepMC/include/ -I $ROOTSYS/include/ HepMCEvent.h
>
> i get:
>
> Error: cannot open file "TROOT.h" :0:
> !!!Removing HepMCEventdict.cc HepMCEventdict.h !!!
> Error: rootcint: error loading headers...
>
> I`m using root 5.13/6. ($ROOTSYS is set correct and TROOT.h is readable
> and on the right place)
>
> Thx
Received on Tue Dec 12 2006 - 19:34:39 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET