Hi Rene, That works well. Thank you so much. Rene Brun wrote: >Hi, > >It looks like ACLIC is not able to generate the definition for the dictionary of >the class pair<int,int>. Instead of ACLIC, do, eg: > >rootcint -f mapcint.cxx -c RtgObject.hh maplinkdef.h >g++ -g -fPIC -I$ROOTSYS/include -c mapcint.cxx RtgObject.cc >g++ -g -o A RtgObject.o mapcint.o `root-config --libs` -lPhysics > >with maplinkdef.h: >#ifdef __CINT__ > >#pragma link off all globals; >#pragma link off all classes; >#pragma link off all functions; > >#pragma link C++ class RtgEvent+; >#pragma link C++ class RtgMet+; >#pragma link C++ class RtgTrack+; >#pragma link C++ class RtgTower+; >#pragma link C++ class RtgPhoton+; >#pragma link C++ class RtgElectron+; >#pragma link C++ class RtgMuon+; >#pragma link C++ class RtgTau+; >#pragma link C++ class RtgPi0+; >#pragma link C++ class RtgCesMatch+; >#pragma link C++ class RtgJet+; >#pragma link C++ class RtgBoson+; >#pragma link C++ class pair<int,int>; > >#endif > > >Rene Brun > > >Dongwook Jang wrote: > > >>Hi, >> >>I've attached files. >>The problem is to stream out the type of map<pair<int, int>,SomeObject>. >>I did the following in root session : >> >>.L RtgObject.cc+ >>TestRtgObject(); >> >>then got segmentaion fault. >>The files I attached contains class definition and making a simple tree >>and read that tree. >> >>Could you look into this? >>I'm using root 3.10.01 with gcc 3.2.2 on redhat linux 9.0. >> >>Thank you. >>Dongwook Jang. >> >> -------------------------------------------------------------------------------- >> Name: RtgObject.hh >> RtgObject.hh Type: Plain Text (text/plain) >> Encoding: 7bit >> >> Name: RtgObject.cc >> RtgObject.cc Type: Plain Text (text/plain) >> Encoding: 7bit >> >>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET