[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IMP-dev] Compiling error in double precision.



Hi, I got a following error message, when I try to use a double precision. (I'm using "typedef double Float;" in base_types.h)


modules/core/src/internal/ParticleGrid.cpp: In member function 'void IMP::core::internal::ParticleGrid::build_grid(const IMP::Particles&)': modules/core/src/internal/ParticleGrid.cpp:57: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: /usr/include/architecture/i386/math.h:352: note: candidate 1: double pow(double, double) /usr/include/c++/4.0.0/cmath:344: note: candidate 2: float std::pow(float, float)
scons: *** [modules/core/src/internal/ParticleGrid.os] Error 1
build/include/IMP/SingletonContainer.h:59: Warning(473): Returning a pointer or reference in a director method is not recommended.


Could you take a look at it?