[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile problems (was Re: [libann-users] Where to download libann?)
From: |
John Darrington |
Subject: |
Re: compile problems (was Re: [libann-users] Where to download libann?) |
Date: |
Sat, 21 Feb 2004 12:21:10 +0800 |
User-agent: |
Mutt/1.3.28i |
On Fri, Feb 20, 2004 at 07:36:44PM +0100, Zbynek Winkler wrote:
I am using cygwin and I am having some troubles compiling.
'make demo' fails saying:
g++ -c -I /usr/local/include -I . -I . -I ./demos/common -I ./demos -I
demos -g demos/main.cc -o de
mos/main.o
demos/main.cc:40: error: syntax error before `/' token
demos/main.cc: In function `int main(int, char**)':
demos/main.cc:78: error: call of overloaded `log(int&)' is ambiguous
/usr/include/math.h:58: error: candidates are: double log(double)
/usr/include/c++/3.3.1/cmath:422: error: long double
std::log(long double)
/usr/include/c++/3.3.1/cmath:411: error: float
std::log(float)
make: *** [demos/main.o] Error 1
I do not understand the error since there is no 'log(int&)' call in the
main.cc file. It could be some macro magic though.
I suspect you're right, and cygwin has its own macro for log2. So you
could try commenting out the definition of log2 in demos/main.cc
Also, #include <math.h> should in fact read #include <cmath>
I am also not able to create the documentation. What are the steps to do
so? Just 'make' in the 'doc' directory tells me
make: *** No rule to make target `doc/libann.texinfo', needed by
`doc/libann.d'. Stop.
libann uses a non-recursive make system so you need to build from the
root of the distribution tree. Or you can do it manually. But I
don't know if cygwin comes with texinfo by default. You may have to
download it separately, Try texi2dvi doc/libann.texinfo
--
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.
pgpiQGHRvLklY.pgp
Description: PGP signature