Linix Compile Error: Combat and Commands

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

Post Reply
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Linix Compile Error: Combat and Commands

Post by John Adams » Mon Oct 21, 2013 11:24 am

Combat.cpp: In member function ‘void Entity::MeleeAttack(Spawn*, float, bool, bool)’:
Combat.cpp:210: error: ‘floor’ was not declared in this scope
Combat.cpp: In member function ‘void Entity::RangeAttack(Spawn*, float, Item*, Item*, bool)’:
Combat.cpp:312: error: ‘floor’ was not declared in this scope
make: *** [Combat.o] Error 1
Combat.cpp:

Code: Select all

int8 automatic_multi = floor((int8)(multi_attack / 100));

And, much to your amazement, I actually fixed it myself. For some reason, you added floor() without including <math.h> and PoS Windows compiler seems okay with that...

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests