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

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Tue, 12 Dec 2006 14:35:09 -0600


Hi,

Also note that -I$ROOTSYS/include is not necessary since rootcint automatically uses it.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Axel Naumann
Sent: Tuesday, December 12, 2006 12:34 PM To: Oliver Oberst
Cc: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] rootcint gives: Error: cannot open file "TROOT.h" :0:

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 - 21:35:40 MET

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