Need help with compiling: error in unit_generic.cpp

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
Guest

Need help with compiling: error in unit_generic.cpp

Post by Guest »

0.4.2 files from CVS
Here's the realevant part:

Code: Select all

/usr/include/features.h:131:1: warning: this is the location of the previous definition
unit_generic.cpp:2235: error: default argument given for parameter 2 of `void
   Unit::DecreaseWarpEnergy(bool, float)'
unit_generic.h:681: error: after previous specification in `void
   Unit::DecreaseWarpEnergy(bool, float)'
unit_generic.cpp: In member function `void Unit::DamageRandSys(float, const
   Vector&, float, float)':
unit_generic.cpp:3271: warning: converting to `int' from `float'
unit_generic.cpp:3277: warning: converting to `int' from `float'
unit_generic.cpp:3304: warning: converting to `int' from `float'
unit_generic.cpp:3405: warning: converting to `unsigned char' from `float'
unit_generic.cpp: In member function `float
   Unit::DealDamageToHullReturnArmor(const Vector&, float, float*&)':
unit_generic.cpp:3706: warning: converting to `unsigned int' from `float'
unit_generic.cpp: In member function `bool Unit::UpAndDownGrade(const Unit*,
   const Unit*, int, int, bool, bool, int, bool, double&, const Unit*, bool)':
unit_generic.cpp:5509: warning: converting to `unsigned char' from `double'
unit_generic.cpp:5516: warning: converting to `int' from `double'
unit_generic.cpp:5610: warning: converting to `char' from `double'
unit_generic.cpp: In member function `void Unit::ImportPartList(const
   std::string&, float, float, float, float)':
unit_generic.cpp:6357: warning: converting to `int' from `float'
unit_generic.cpp:6362: warning: converting to `int' from `double'
unit_generic.cpp:6379: warning: converting to `int' from `float'
make[3]: *** [unit_generic.o] Error 1
make[3]: Leaving directory `/home/scott/vegastrike_0_4_2/vegastrike/src/cmd'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/scott/vegastrike_0_4_2/vegastrike/src/cmd'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/scott/vegastrike_0_4_2/vegastrike/src'
make: *** [install-recursive] Error 1
If the config.log would help any I could post that too.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

I think I fixed that...can you confirm?
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Post Reply