Linux Compile Error - DatabaseNew.o
Posted: Wed Apr 04, 2012 12:00 pm
~burp~ Shakes fist at Scatman!
I could fix this, but wanted you to see before I hack something to bits.
Code: Select all
eq2dev@eq2dev:~/src/EQ2/source/WorldServer$ make
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/Condition.cpp -o ../common/Condition.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/ConfigReader.cpp -o ../common/ConfigReader.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/CRC16.cpp -o ../common/CRC16.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/Crypto.cpp -o ../common/Crypto.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/DatabaseNew.cpp -o ../common/DatabaseNew.o
In file included from ../common/DatabaseNew.h:4,
from ../common/DatabaseNew.cpp:4:
../common/DatabaseResult.h:5:78: error: WinSock.h: No such file or directory
../common/DatabaseNew.cpp: In member function âbool DatabaseNew::Connect()â:
../common/DatabaseNew.cpp:34: error: âmemsetâ was not declared in this scope
../common/DatabaseNew.cpp:44: error: âstrnicmpâ was not declared in this scope
../common/DatabaseNew.cpp:48: error: âstrtokâ was not declared in this scope
../common/DatabaseNew.cpp:50: error: âstrnicmpâ was not declared in this scope
../common/DatabaseNew.cpp:51: error: âstrncpyâ was not declared in this scope
../common/DatabaseNew.cpp:53: error: âstrncpyâ was not declared in this scope
../common/DatabaseNew.cpp:55: error: âstrncpyâ was not declared in this scope
../common/DatabaseNew.cpp:57: error: âstrncpyâ was not declared in this scope
../common/DatabaseNew.cpp: In member function âbool DatabaseNew::Query(const char*, ...)â:
../common/DatabaseNew.cpp:107: warning: format â%luâ expects type âlong unsigned intâ, but argument 3 has type âsize_tâ
../common/DatabaseNew.cpp: In member function âbool DatabaseNew::Select(DatabaseResult*, const char*, ...)â:
../common/DatabaseNew.cpp:144: warning: format â%luâ expects type âlong unsigned intâ, but argument 3 has type âsize_tâ
make: *** [../common/DatabaseNew.o] Error 1