• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Guys, I need help.

Nuvemem

;]
Joined
Apr 4, 2009
Messages
220
Reaction score
0
Location
Somewhere...
Haii Guys,

I got problem while i'm compiling my server.

Lua:
In file included from luascript.h:44,
                 from creatureevent.h:24,
                 from creatureevent.cpp:22:
position.h: In static member function 'static bool Position::areInRange(const Position&, const Position&)':
position.h:49: error: call of overloaded 'abs(int&)' is ambiguous
/usr/include/c++/4.3/cmath:99: note: candidates are: double std::abs(double)
/usr/include/c++/4.3/cmath:103: note:                 float std::abs(float)
/usr/include/c++/4.3/cmath:107: note:                 long double std::abs(long double)
position.h:49: error: call of overloaded 'abs(int&)' is ambiguous
/usr/include/c++/4.3/cmath:99: note: candidates are: double std::abs(double)
/usr/include/c++/4.3/cmath:103: note:                 float std::abs(float)
/usr/include/c++/4.3/cmath:107: note:                 long double std::abs(long double)


If You know how to fix that, I will be glad and of course i'll rep u ;)

thanks in advance.



edit;

it's debian 5.0.


on line 99,103 & 107 in usr/include/c++/4.3/cmath =

Lua:
  inline double
  abs(double __x)
  { return __builtin_fabs(__x); }

  inline float
  abs(float __x)
  { return __builtin_fabsf(__x); }

  inline long double
  abs(long double __x)
  { return __builtin_fabsl(__x); }
 
Last edited:
Back
Top