libann-users
[Top][All Lists]
Advanced

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

[libann-users] libann 1.4 does not compile


From: Johnny Wezel
Subject: [libann-users] libann 1.4 does not compile
Date: Sun, 22 Jun 2003 18:32:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507

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


Cheers,
Johnny Wezel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]