Error when compiling CbmTstHybridHitProducer.cxx [message #4386] |
Thu, 31 May 2007 09:49 |
Klaus Götzen
Messages: 293 Registered: June 2006 Location: GSI
|
first-grade participant |
From: *ikf.physik.uni-frankfurt.de
|
|
Hi!
Again, after updating via svn, I get after a 'make clean' and the standard procedure this error messages:
.
.
.
../../pandaroot/mvd/tst/CbmTstHybridHitProducer.cxx: In member function `
CbmTstHit CbmTstHybridHitProducer::CalcGlobalPoint(std::vector<CbmTstPixel,
std::allocator<CbmTstPixel> >)':
../../pandaroot/mvd/tst/CbmTstHybridHitProducer.cxx:383: error: call of
overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathcalls.h:157: error: candidates are: double sqrt(double)
/usr/include/c++/3.3/cmath:550: error: long double
std::sqrt(long double)
/usr/include/c++/3.3/cmath:546: error: float std::sqrt(float)
../../pandaroot/mvd/tst/CbmTstHybridHitProducer.cxx:383: error: call of
overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathcalls.h:157: error: candidates are: double sqrt(double)
/usr/include/c++/3.3/cmath:550: error: long double
std::sqrt(long double)
/usr/include/c++/3.3/cmath:546: error: float std::sqrt(float)
make[1]: *** [CbmTstHybridHitProducer.lo] Error 1
make[1]: Leaving directory `/d/panda02/kgoetzen/pandasoft/build/mvd'
make: *** [install-recursive] Error 1
Let me again emphasize: We need a stable version in the repository!
Klaus
|
|
|
Re: Error when compiling CbmTstHybridHitProducer.cxx [message #4389 is a reply to message #4386] |
Thu, 31 May 2007 10:39 |
StefanoSpataro
Messages: 2736 Registered: June 2005 Location: Torino
|
first-grade participant |
From: *physik.uni-giessen.de
|
|
Hi,
I could not reproduce your error here in Gießen, but we had already this kind of problem.
The problem is that what is a "warning" for a compiler, becomes "error" for another compiler. In my case I received neither a warning message, and I can compile the whole pandaroot.
If you substitute at line 383 of the mvd/tst/CbmTstHybridHitProducer.cxx file the "12" with "12.", it should work, waiting for the official fix.
In eachc ase this "error" is quite strange... whch compiler version do you have?
[Updated on: Thu, 31 May 2007 10:40] Report message to a moderator
|
|
|
|
|
|