Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot, Yandex, Sogou, Yahoo!

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Banking Add-On Problem
Forum Rules | Mark all | Recent Posts

Banking Add-On Problem
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 15, 2008, 10:11 am
Go to the top of the page
Go to the bottom of the page

whisperedecho
Apprentice
GroupMembers
Posts58
JoinedMay 9, 2008

I followed the instructions for Samson's banking add on but I get compiler errors when I try to make.

I was especially confused about this part in the instructions:

5. Make the appropriate additions to tables.c for do_balance, do_withdraw, and do_deposit.


What exactly am I supposed to add to tables.c?

These are the errors I get when trying to compile:

mike@valdor-server:~/smaugfuss/src$ make
make -s smaug
  Compiling o/act_comm.o....
In file included from act_comm.c:22:
mud.h:3645: warning: redundant redeclaration of ‘void do_balance(CHAR_DATA*, char*)’ in same scope
bank.h:40: warning: previous declaration of ‘void do_balance(CHAR_DATA*, char*)’
mud.h:3645: warning: redundant redeclaration of ‘void do_balance_mangled(CHAR_DATA*, char*)’ in same scope
bank.h:40: warning: previous declaration of ‘void do_balance_mangled(CHAR_DATA*, char*)’
mud.h:3698: warning: redundant redeclaration of ‘void do_deposit(CHAR_DATA*, char*)’ in same scope
bank.h:41: warning: previous declaration of ‘void do_deposit(CHAR_DATA*, char*)’
mud.h:3698: warning: redundant redeclaration of ‘void do_deposit_mangled(CHAR_DATA*, char*)’ in same scope
bank.h:41: warning: previous declaration of ‘void do_deposit_mangled(CHAR_DATA*, char*)’
mud.h:4031: error: function definition does not declare parameters
make[1]: *** [o/act_comm.o] Error 1
make: *** [all] Error 2
       
Post is unread #2 May 15, 2008, 10:25 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Those instructions for the snippet are outdated. You don't need to do the tables.c part or the part where it asked to add things like DECLARE_DO_FUN to mud.h. The bank.h file already has those.
       
Post is unread #3 May 15, 2008, 11:40 am   Last edited May 15, 2008, 11:52 am by whisperedecho
Go to the top of the page
Go to the bottom of the page

whisperedecho
Apprentice
GroupMembers
Posts58
JoinedMay 9, 2008

Ok, thanks. :smile: It compiled just fine after I removed those references.
       
Pages:<< prev 1 next >>