I can "me too" Manoel's problem in my Geant4+ROOT application. I can also provide the following additional information: I'm running Geant4.4.0, ROOT 3.02/07, compiled with GCC 2.95.2 under Redhat 7.2. I have the following in my GNUmakefile: CPPFLAGS += `root-config --cflags` My particular system has egcs 1.1.2, gcc 2.95.2, and gcc 3.01 installed in various directories. There are many versions of float.h and math.h in various include/ directories for the different compilers. If I do: grep isnan `locate float.h` ...I don't see isnan anywhere. If I do grep isnan `locate math.h` I see some #defines for isnan(x). But if I put "#include <cmath>" or even "#include <math.h>" in my code, I get still get the same error message. Any ideas? > Date: Fri, 11 Jan 2002 16:38:50 +0100 > From: Couder Manoel <couder@fynu.ucl.ac.be> > Subject: [ROOT] Geant4 and ROOT compilation error... > > 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) > - [...errors with not finding 'isnan' and 'finite' omitted] > 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 -- Bill Seligman | mailto://seligman@nevis.columbia.edu Nevis Labs | http://www.nevis.columbia.edu/~seligman/ PO Box 137 | Irvington NY 10533 | Phone: (914) 591-2823
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET