Hi,
I am trying to link ROOT with a Geant4 code.
I write in the user makefile provide by G4:
----------------------------------------------------------------------------------------------------------------
CPPFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --nonew --libs)
EXTRALIBS += $(ROOTLIBS)
----------------------------------------------------------------------------------------------------------------
As they said in the G4 manual to link with external libraries but during the
compilation i got this error:
----------------------------------------------------------------------------------------------------------------
In file included from /usr/local/cern/root/include/TString.h:31,
from /usr/local/cern/root/include/TCollection.h:34,
from /usr/local/cern/root/include/TSeqCollection.h:26,
from /usr/local/cern/root/include/TList.h:26,
from /usr/local/cern/root/include/TNamed.h:29,
from /usr/local/cern/root/include/TDirectory.h:25,
from /usr/local/cern/root/include/TROOT.h:29,
from exampleN01.cc:44:
/usr/local/cern/root/include/TMath.h: In function `Int_t TMath::Finite
(double)':
/usr/local/cern/root/include/TMath.h:387: `finite' undeclared (first use this
function)
/usr/local/cern/root/include/TMath.h:387: (Each undeclared identifier is
reported only once for each
function it appears in.)
/usr/local/cern/root/include/TMath.h: In function `Int_t TMath::IsNaN
(double)':
/usr/local/cern/root/include/TMath.h:390: `isnan' undeclared (first use this
function)
----------------------------------------------------------------------------------------------------------------
I don't understand the problem, i never had this error when i linked root
with my own class.
Can anyone help me ???
Thanks a lot
Manoel
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET