EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=618)
-   -   6-14-04 compile error (https://www.eqemulator.org/forums/showthread.php?t=14345)

wize_one 06-15-2004 10:07 AM

6-14-04 compile error
 
Quote:

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:

Code:

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


All times are GMT -4. The time now is 05:22 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.