Compile errors with 0.3.7 on Mandrake 8.2
I have made sure my zlib and mysql header files are in the proper places and ldconfig knows about them, however I cannot get the 0.3.7 sources to compile for either world or zone. After filtering out the unbeLIEVEable amount of warnings (!) I am left with this for world:
gcc -c -g -mcpu=i486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/inc
lude/mysql -I/usr/mysql/include console.cpp -o console.o
console.cpp: In member function `virtual void Console::SendEmoteMessage(const
char*, unsigned int, unsigned int, const char*, ...)':
console.cpp:222: `va_list' undeclared (first use this function)
console.cpp:222: (Each undeclared identifier is reported only once for each
function it appears in.)
console.cpp:222: parse error before `;' token
console.cpp:225: `argptr' undeclared (first use this function)
console.cpp:225: `va_start' undeclared (first use this function)
console.cpp:227: `va_end' undeclared (first use this function)
console.cpp: In member function `void Console::SendExtMessage(const char*,
...)':
console.cpp:232: parse error before `;' token
console.cpp: In member function `void Console::SendMessage(unsigned char, const
char*, ...)':
console.cpp:248: parse error before `;' token
console.cpp: In member function `void Console::CheckBuffer()':
console.cpp:351: `hex' undeclared (first use this function)
console.cpp:351: `dec' undeclared (first use this function)
make: *** [console.o] Error 1
and this for zone:
gcc -c -O -g -mcpu=i486 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -I/usr/incl
ude/mysql -I/usr/mysql/include client.cpp -o client.o
client.cpp: In member function `void Client::ChannelMessageSend(const char*,
const char*, unsigned char, unsigned char, const char*, ...)':
client.cpp:2139: `va_list' undeclared (first use this function)
client.cpp:2139: (Each undeclared identifier is reported only once for each
function it appears in.)
client.cpp:2139: parse error before `;' token
client.cpp:2142: `argptr' undeclared (first use this function)
client.cpp:2142: `va_start' undeclared (first use this function)
client.cpp:2144: `va_end' undeclared (first use this function)
client.cpp: In member function `void Client::Message(unsigned int, const char*,
...)':
client.cpp:2178: parse error before `;' token
make: *** [client.o] Error 1
doing some grepping on the undeclared vars to see what I come up with but I am not a C++ coder, so any help would be greatly appreciated.
thanks in advance
Psychobabble
|