Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ PennMUSH ➜ Compiling the server ➜ Compiling PennMUSH 1.7.4 pl3

Compiling PennMUSH 1.7.4 pl3

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Arithon   Australia  (1 post)  Bio
Date Fri 04 May 2001 02:42 AM (UTC)
Message
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)
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 04 May 2001 05:01 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,949 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.