Error 1
Code: Select all
g++ -c -Wall -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include LuaFunctions.cpp -o LuaFunctions.o
LuaFunctions.cpp: In function int EQ2Emu_lua_AddSpellBonus(lua_State*):
LuaFunctions.cpp:1470: error: pow was not declared in this scope
LuaFunctions.cpp: In function int EQ2Emu_lua_AddSpawnSpellBonus(lua_State*):
LuaFunctions.cpp:1548: error: pow was not declared in this scope
.
.
.Code: Select all
#include <math.h>Error 2
Code: Select all
g++ -c -Wall -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include net.cpp -o net.o
net.cpp: In function ‘int main(int, char**)’:
net.cpp:344: error: ‘remove’ is not a member of ‘std’
make: *** [net.o] Error 1Edit: Since we have using namespace std; in the net.cpp, do we need the std::remove()? Not that remove() would work any better, just curious why the added namespace.
I attempted to add
Code: Select all
#ifndef WIN32
#include <cstdio>
#endif