Subject: [IMP-dev] Compiling error in double precision.
From: Seung Joong Kim <>
Date: Mon, 02 Feb 2009 12:54:02 -0800
Reply-to: List for IMP development <>
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)