new error in Vegastrike CVS

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Jadel
Merchant
Merchant
Posts: 59
Joined: Tue Jun 24, 2003 2:19 pm
Location: South Australia

new error in Vegastrike CVS

Post by Jadel »

compiling from CVS with --enable-boost-128 on a gentoo system with gcc-3.3

depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I ../ -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_SDL_MIXER=1 -DHAVE_AL=1 -I/usr/include/python2.2 -DHAVE_PYTHON=1 -I../boost -I../../boost -I../src/boost -DUSE_BOOST_128=1 -pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -I/usr/include/SDL -D_REENTRANT -pipe -c -o collide.o `test -f 'collide.cpp' || echo './'`collide.cpp
collide.cpp:27: error: call of overloaded `log(int)' is ambiguous
/usr/include/bits/mathinline.h:459: error: candidates are: double log(double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/cmath:419: error:
long double std::log(long double)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/cmath:411: error:
float std::log(float)

make[4]: *** [collide.o] Error 1
make[4]: Leaving directory `/home/jj/vega/vegastrikedir/src/cmd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jj/vega/vegastrikedir/src/cmd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jj/vega/vegastrikedir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jj/vega/vegastrikedir'
make: *** [all] Error 2

changing:
log(2)
to:
log((float)2)
fixed the error. Otherwise everything else built OK.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

this is fixed in cvs last I could tell
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Post Reply