Re: Root configuration

From: <asaddiqu_at_ualberta.ca>
Date: Thu, 10 Mar 2011 13:45:49 -0700

Hi Axel,

  Thanks for your reply. But do you have any clue that how can I avoid these error messages.

Cheers,Asif

Quoting "Axel Naumann" <Axel.Naumann_at_cern.ch>:

> Hi,
>
> (this time CC list)
>
>> 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
>
> should be
>
>> g++ -O2 -ansi -W -Wall -Wshadow -I../include
>> `root-config --cflags` \
>> 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 \
>> `root-config --libs` \
>> -lgfortran -lgfortranbegin
>
> Note the two (!) occurrences of root-config.
>
> Cheers, Axel.
>
>
> asaddiqu_at_ualberta.ca wrote on 03/10/2011 02:48 PM:
>> 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 - 21:45:58 CET

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