Root configuration

From: <asaddiqu_at_ualberta.ca>
Date: Thu, 10 Mar 2011 06:48:51 -0700


Hi,

   I using a private pythia version and I have configured root with this pythia by

export ROOTSYS=$HOME/ROOT/root
export PATH=${PATH}:${ROOTSYS}/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ROOTSYS}/lib

But when I compile any file, it gives me some error message. I know it can be a very specific question to ask but If you can give me any hint that would be great. The error message is following:



g++ -O2 -ansi -W -Wall -Wshadow -I../include -I/hepusers/asaddiq/Root/root/include
SaRootAna.cc main_gmgm_root.cc -o ../bin/main_gmgm_root.exe \
         -L../lib/archive -lpythia8 \
         -L/hepusers/asaddiq/Std_Pythia/lhapdf/lhapdf-work/lib -lLHAPDF \
         -L/hepusers/asaddiq/Root/root/lib \
         -lgfortran -lgfortranbegin

/tmp/ccylpAiK.o: In function `SaRootAna::init()': SaRootAna.cc:(.text+0x161): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x181): undefined reference to `TFile::TFile(char const*, char
const*, char const*, int)'
SaRootAna.cc:(.text+0x18f): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x1a9): undefined reference to `TTree::TTree(char const*, char
const*, int)'
SaRootAna.cc:(.text+0x1d9): undefined reference to
`TTree::SetBranchStyle(int)'

SaRootAna.cc:(.text+0x241): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x265): undefined reference to `TH1F::TH1F(char const*, char const*,
int, double, double)'
SaRootAna.cc:(.text+0x27d): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x2a4): undefined reference to `TH1F::TH1F(char const*, char const*,
int, double, double)'
SaRootAna.cc:(.text+0x2b2): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x2d9): undefined reference to `TH1F::TH1F(char const*, char const*,
int, double, double)'
SaRootAna.cc:(.text+0x2f1): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x31c): undefined reference to `TH1F::TH1F(char const*, char const*,
int, double, double)'
SaRootAna.cc:(.text+0x32a): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x351): undefined reference to `TH1F::TH1F(char const*, char const*,
int, double, double)'
SaRootAna.cc:(.text+0x35f): undefined reference to
`TStorage::ObjectAlloc(unsigned long)'

SaRootAna.cc:(.text+0x386): undefined reference to `TH1F::TH1F(char const*, char const*,
int, double, double)'
SaRootAna.cc:(.text+0x3a5): undefined reference to `TObject::operator delete(void*)'
/tmp/ccylpAiK.o: In function
`__static_initialization_and_destruction_0(int, int)':
SaRootAna.cc:(.text+0x42): undefined reference to
`TVersionCheck::TVersionCheck(int)'

/tmp/ccuxR0tA.o: In function
`__static_initialization_and_destruction_0(int, int)':
main_gmgm_root.cc:(.text+0x42): undefined reference to
`TVersionCheck::TVersionCheck(int)'

collect2: ld returned 1 exit status
make: *** [main_gmgm_root] Error 1
==================================================\



Cheers, Asif Received on Thu Mar 10 2011 - 14:48:57 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 10 2011 - 17:50:01 CET