Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Google, Yandex, Bing

Members: 0
Guests: 17
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
621
KellieBusb
Today's Birthdays
Rane (42)
Related Links
» SmaugMuds.org » General » Smaug Snippets » Problem with bank snippet
Forum Rules | Mark all | Recent Posts

Problem with bank snippet
< Newer Topic :: Older Topic > not compatible with smaugfuss?

Pages:<< prev 1 next >>
Post is unread #1 Apr 13, 2006, 5:42 pm   Last edited Nov 25, 2007, 5:33 pm by Samson
Go to the top of the page
Go to the bottom of the page

tymanda

GroupMembers
Posts2
JoinedApr 13, 2006

I downloaded the bank code ( http://www.smaugmuds.org/index.php?a=files&s=viewfile&fid=13 ) to install in my smaugfuss mud (we have been running smaug 1.4a but are dropping it for the improved smaugfuss after we get the snippets we added moved over) but it gives compile errors.


Followed the directions (and retried at least 3 times before coming here with this) but it's just throwing errors.


$ make
make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/bank.o....
In file included from mud.h:358,
from bank.c:40:
imc.h:421: error: parse error before "FILE"
imc.h:421: warning: function declaration isn't a prototype
imc.h:422: error: parse error before "FILE"
imc.h:422: warning: function declaration isn't a prototype
In file included from bank.c:40:
mud.h:3351: error: parse error before '*' token
mud.h:3351: warning: type defaults to `int' in declaration of `fpArea'
mud.h:3351: warning: data definition has no type or storage class
mud.h:4325: error: parse error before '*' token
mud.h:4325: warning: function declaration isn't a prototype
mud.h:4326: error: parse error before '*' token
mud.h:4326: warning: function declaration isn't a prototype
mud.h:4327: error: parse error before '*' token
mud.h:4327: warning: function declaration isn't a prototype
mud.h:4328: error: parse error before "FILE"
mud.h:4328: warning: function declaration isn't a prototype
mud.h:4330: error: parse error before '*' token
mud.h:4330: warning: function declaration isn't a prototype
mud.h:4331: error: parse error before '*' token
mud.h:4331: warning: function declaration isn't a prototype
mud.h:4332: error: parse error before '*' token
mud.h:4332: warning: function declaration isn't a prototype
mud.h:4333: error: parse error before '*' token
mud.h:4333: warning: function declaration isn't a prototype
mud.h:4334: error: parse error before '*' token
mud.h:4334: warning: function declaration isn't a prototype
mud.h:4335: error: parse error before '*' token
mud.h:4335: warning: function declaration isn't a prototype
mud.h:4464: error: parse error before "FILE"
mud.h:4464: warning: function declaration isn't a prototype
mud.h:4465: error: parse error before "FILE"
mud.h:4465: warning: function declaration isn't a prototype
mud.h:4483: error: parse error before '*' token
mud.h:4483: warning: function declaration isn't a prototype
mud.h:4485: error: parse error before '*' token
mud.h:4485: warning: function declaration isn't a prototype
mud.h:4515: error: parse error before '*' token
mud.h:4515: warning: function declaration isn't a prototype
mud.h:4682: error: parse error before "FILE"
mud.h:4682: warning: function declaration isn't a prototype
mud.h:4683: error: parse error before "FILE"
mud.h:4683: warning: function declaration isn't a prototype
mud.h:4688: error: parse error before '*' token
mud.h:4688: warning: function declaration isn't a prototype
mud.h:4689: error: parse error before '*' token
mud.h:4689: warning: function declaration isn't a prototype
bank.c: In function `do_deposit':
bank.c:79: warning: implicit declaration of function `snprintf'
make[1]: *** [o/bank.o] Error 1
make: *** [all] Error 2



If I comment out all the bank related code I get a good compile.


Is this snippet just not compatible with smaugfuss or is there a change that needs to be made to make it work?
       
Post is unread #2 Apr 13, 2006, 6:08 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

I've looked over the bank snippet and don't see anything out of the ordinary that would make it cause those issues or anything it should have a problem with. From the looks of things though an Include might be missing or something. Can you post what you have in the files and line numbers for at least these.

from bank.c:40:
imc.h:421: error: parse error before "FILE"
imc.h:421: warning: function declaration isn't a prototype
imc.h:422: error: parse error before "FILE"
imc.h:422: warning: function declaration isn't a prototype
In file included from bank.c:40:
mud.h:3351: error: parse error before '*' token
mud.h:3351: warning: type defaults to `int' in declaration of `fpArea'
mud.h:3351: warning: data definition has no type or storage class

That might give us some idea of what is missing or what the possible issue is.
       
Post is unread #3 Apr 13, 2006, 6:47 pm   Last edited Apr 13, 2006, 7:14 pm by tymanda
Go to the top of the page
Go to the bottom of the page

tymanda

GroupMembers
Posts2
JoinedApr 13, 2006

Here are the line numbers and the stuff in them

bank.c 40: #include "mud.h"
imc.h 421: bool imc_loadchar( CHAR_DATA * ch, FILE * fp, const char *word );
imc.h 422: void imc_savechar( CHAR_DATA * ch, FILE * fp );

mud.h 3351: extern char strArea[MAX_INPUT_LENGTH];





Edit:
#include <stdio.h> in mud.h fixed this. It works now.
       
Post is unread #4 Apr 14, 2006, 5:12 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

Nice, glad you got it working right now :)
       
Post is unread #5 Apr 14, 2006, 10:21 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Hmm. Guess I need to add that to bank.c then. Thanks for spotting that.
       
Pages:<< prev 1 next >>