Message: Help makeing example Radioactivedecay with root Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Help makeing example Radioactivedecay with root 

Keywords: root examples
Forum: Documentation and Examples
Date: 16 May, 2007
From: Ted Forringer <Ted Forringer>

I am brand new to geant4 and to root. I belive both are installed correctly as root runs from the command line and the geant4 examples compile and run.

However, when I ask the radioactivedecay (or probably any examples) to "gmake" with the environment variable G4ANALYSIS_USE_ROOT=1

I get the following output:

---------output--------------

Making dependency for ... (many lines no errors)

Compiling ... (many lines no errors)

Creating/replacing object files in /home/tedforringer/geant4/tmp/Linux-g++/exRDM/libexRDM.a ...

ar: creating /home/tedforringer/geant4/tmp/Linux-g++/exRDM/libexRDM.a
Compiling exRDM.cc ... Using granular libraries ... Linking exRDM ...

/home/tedforringer/geant4/tmp/Linux-g++/exRDM/libexRDM.a(exrdmHisto.o): In function `exrdmHisto::book()': exrdmHisto.cc:(.text+0xb48): undefined reference to `TFile::TFile(char const*, char const*, char const*, int)' /home/tedforringer/physics/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArray(double*&)' /home/tedforringer/physics/root/lib/libTree.so: undefined reference to `TBufferFile::SetReadParam(int)'

... (many lines like this, all having to do with ROOT calls)

/home/tedforringer/physics/root/lib/libTree.so: undefined reference to `TBufferFile::WriteClones(TClonesArray*, int)' /home/tedforringer/physics/root/lib/libTree.so: undefined reference to `TKey::Create(int, TFile*)'

collect2: ld returned 1 exit status
gmake: *** [/home/tedforringer/geant4/bin/Linux-g++/exRDM] Error 1

---------- end of output--------------

The example compiles and links find w/o the USE_ROOT option.

$ROOTSYS=/home/tedforringer/physics/root

Any ideas?

Thanks, Ted

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Help makeing example Radioactivedecay with root"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]