[ROOT] problem with MacOSX

From: Brian Kurt Fujikawa (BKFujikawa@lbl.gov)
Date: Sat Feb 15 2003 - 02:37:15 MET


Hello

I'm running root v3.04.02 (source installation) on MacOSX 10.2.3 (X Public
Beta 0.2). I am having trouble running a standalone program that loads 
trees. Specifically, my program includes the lines:

TFile* EventFile=
new TFile("/Users/bkf/emiT/data/Data1_20021209_15477.root");
TTree* CoincidenceEventTree=
(TTree*)EventFile->Get("Event/CoincidenceEventTree");
TBranch* CoincidenceEventBranch=
CoincidenceEventTree->GetBranch("CoincidenceEventBranch");

and when I run it, I get the following error messages:

Warning in <TClass::TClass>: no dictionary for class TTree is available
Warning in <TClass::TClass>: no dictionary for class TBranchElement is 
available
Warning in <TClass::TClass>: no dictionary for class TBranch is available
Warning in <TClass::TClass>: no dictionary for class TLeafElement is 
available
Warning in <TClass::TClass>: no dictionary for class TLeaf is available
Error in <TBuffer::CheckByteCount>: object of class TNamed read too few 
bytes: 26 instead of 821615
Warning in <TBuffer::CheckByteCount>: TNamed::Streamer() not in sync with 
data on file, fix Streamer()

 *** Break *** bus error
Abort


This programs DOES run when I execute it as a script in root and it also
runs on a linux box.

I am using the following commands to build this program ("myprog"):

g++ -O -Wall -pipe -I/Users/bkf/include/DAT/ -I/Users/bkf/root/include -c 
myprog.cc
g++ -O -Xlinker -bind_at_load -flat_namespace -o myprog myprog.o 
-L/Users/bkf/lib/ -lDATEvent -L/Users/bkf/root/lib -lCore -lCint -lHist 
-lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm 
-ldl

Any ideas?

Best Regards

Brian
-- 
Brian Kurt Fujikawa (mailto:bkfujikawa@lbl.gov)
Lawrence Berkeley National Laboratory
1 Cyclotron Road, BLDG 50R5008, Berkeley, CA 94720-8158, USA
http://socrates.berkeley.edu/~fujikawa/
tel: +1-510-486-4398  fax: +1-510-486-6738



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET