[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libann-users] libann 1.4 does not compile
From: |
John Darrington |
Subject: |
Re: [libann-users] libann 1.4 does not compile |
Date: |
Mon, 23 Jun 2003 09:08:57 +0800 |
User-agent: |
Mutt/1.3.28i |
Thanks very much for the bug report.
I think this can be fixed if you add substitute 'sqrt' with '::sqrt'.
Can you please tell me which version of g++ you're using, and which
version of the Linux kernel?
Regards,
John
On Sun, Jun 22, 2003 at 06:32:39PM +0200, Johnny Wezel wrote:
I tried to compile libann 1.4 and got the following error:
ann/kohonen.cc: In member function `void
ann::Kohonen::getCoordsFromNode(int,
int&, int&) const':
ann/kohonen.cc:107: call of overloaded `sqrt(const int&)' is ambiguous
/usr/include/bits/mathcalls.h:157: candidates are: double sqrt(double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3/cmath:465:
long double std::sqrt(long double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3/cmath:461:
float std::sqrt(float)
ann/kohonen.cc: In member function `void ann::Kohonen::train(const
std::set<ann::ExtInput, std::less<ann::ExtInput>,
std::allocator<ann::ExtInput> >&, float, float, float, float) const':
ann/kohonen.cc:138: call of overloaded `sqrt(const int&)' is ambiguous
/usr/include/bits/mathcalls.h:157: candidates are: double sqrt(double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3/cmath:465:
long double std::sqrt(long double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3/cmath:461:
float std::sqrt(float)
make: *** [ann/kohonen.o] Error 1
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.
pgpLSqFOirdUJ.pgp
Description: PGP signature