GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » error while making pandaroot
error while making pandaroot [message #11489] Mon, 14 February 2011 08:01 Go to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: *162.23.4.static-mumbai.vsnl.net.in
Hi all,
I was trying to do make pandaroot by editing CMakeLists.txt to add lmd macro by adding line,
add_subdirectory (lmd)

but make gives fallowing error,
.........................................................

/Users/Manoj/fairroot/pandaroot/lmd/LmdTrack/PndLmdTrackFinderTask.cxx: In member function ‘virtual void PndLmdTrackFinderTask::Exec(const Option_t*)’:
/Users/Manoj/fairroot/pandaroot/lmd/LmdTrack/PndLmdTrackFinderTask.cxx:1 35: error: ‘fabs’ was not declared in this scope
/Users/Manoj/fairroot/pandaroot/lmd/LmdTrack/PndLmdTrackFinderTask.cxx:1 71: error: ‘fabs’ was not declared in this scope
make[2]: *** [lmd/CMakeFiles/LmdTrk.dir/LmdTrack/PndLmdTrackFinderTask.cxx.o] Error 1
make[1]: *** [lmd/CMakeFiles/LmdTrk.dir/all] Error 2
make: *** [all] Error 2

..........................................................

can someone please suggest the solution to fix this bug.
my system is mac 10.6.6, 64bits, gcc-4.2


Manoj Jadhav
I.I.T.Bombay
Mumbai

[Updated on: Mon, 14 February 2011 08:10]

Report message to a moderator

Re: error while making pandaroot [message #11490 is a reply to message #11489] Mon, 14 February 2011 09:06 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *pool.mediaWays.net
Hello.
There was an #include "math.h" missing. I fixed that. Just update your trunk/lmd directory.
Pleas edit a "fixed" to this threads title.

Kind regards.

Ralf

[Updated on: Mon, 14 February 2011 09:07]

Report message to a moderator

Re: error while making pandaroot [message #11493 is a reply to message #11489] Mon, 14 February 2011 14:19 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *smi.oeaw.ac.at
Hi

You have to include the math header files.
Add the following line.

#include <cmath>


Ciao

Florian
Previous Topic: First results of TPC code profiling
Next Topic: stable branch update
Goto Forum:
  


Current Time: Fri Mar 29 14:24:04 CET 2024

Total time taken to generate the page: 0.00967 seconds