PDA

View Full Version : 6-14-04 compile error


wize_one
06-15-2004, 10:07 AM
command.cpp:686:17: warning: "/*" within comment
command.cpp: In function `void command_serverinfo(Client*, const Seperator*)':
command.cpp:1018: `Ver_name' undeclared (first use this function)
command.cpp:1018: (Each undeclared identifier is reported only once for each
function it appears in.)
command.cpp:1019: `Ver_build' undeclared (first use this function)
command.cpp:1019: `ultoa' undeclared (first use this function)
command.cpp:1020: `Ver_min' undeclared (first use this function)
command.cpp:1021: `Ver_maj' undeclared (first use this function)
command.cpp:1022: `Ver_pid' undeclared (first use this function)
make: *** [command.o] Error 1


dont care who messed it up.. just looking for a fix..8)

Derision
06-15-2004, 10:16 AM
In zone/command.cpp

Change the command_serverinfo function to comment out those variables:


void command_serverinfo(Client *c, const Seperator *sep)
{

char intbuffer [sizeof(unsigned long)];
c->Message(0, "Operating system information.");
// c->Message(0, " %s", Ver_name);
// c->Message(0, " Build number: %s", ultoa(Ver_build, intbuffer, 10));
// c->Message(0, " Minor version: %s", ultoa(Ver_min, intbuffer, 10));
// c->Message(0, " Major version: %s", ultoa(Ver_maj, intbuffer, 10));
// c->Message(0, " Platform Id: %s", ultoa(Ver_pid, intbuffer, 10));

}

I haven't looked into why those variables are undefined, but command_serverinfo is not a crucial function, so commenting out the offending lines for now shouldn't matter.

wize_one
06-15-2004, 10:36 AM
worked like a charm.. thanks