Compiling PennMUSH 1.7.4 pl3

Posted by Arithon on Fri 04 May 2001 02:42 AM — 2 posts, 12,460 views.

Australia #0
I got the following error compiling Pl3. Anyone got any ideas? I compiled PL2 the other day without a single warning.

--------------------Configuration: pennmush - Win32 Debug--------------------
Compiling...
command.c
d:\pennmushpl3\src\command.c(283) : error C2065: 'cmd_desert' : undeclared identifier
d:\pennmushpl3\src\command.c(283) : error C2099: initializer is not a constant
d:\pennmushpl3\src\command.c(283) : warning C4047: 'initializing' : 'void (__cdecl *)()' differs in levels of indirection from 'const int '
d:\pennmushpl3\src\command.c(284) : error C2065: 'cmd_dismiss' : undeclared identifier
d:\pennmushpl3\src\command.c(284) : error C2099: initializer is not a constant
d:\pennmushpl3\src\command.c(284) : warning C4047: 'initializing' : 'void (__cdecl *)()' differs in levels of indirection from 'const int '
Error executing cl.exe.

pennmush.exe - 4 error(s), 2 warning(s)
Australia Forum Administrator #1
There is a file, cmds.h, which has a function prototype for each command. It sounds like these new ones haven't been added to it.

If you edit the file it looks like this (but longer):


COMMAND_PROTO(cmd_helpcmd);
COMMAND_PROTO(cmd_hide);
COMMAND_PROTO(cmd_inventory);
COMMAND_PROTO(cmd_kick);



Using the above as a guide, add lines for 'cmd_desert' and 'cmd_dismiss', and then it should compile OK.