Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
AFKMud 2.2.2
Mar 3, 2019 5:35 pm
By Samson
Development
Nov 28, 2018 12:10 pm
By Keirath
First Immortal
Oct 12, 2018 2:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018 7:31 pm
By joeyfogas
question on overland code
May 31, 2018 12:03 pm
By joeyfogas
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
AFKMud 2.2.2
Author: AFKMud Team
Submitted by: Samson
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
Users Online
CommonCrawl, Bing, Google

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
483
3,743
19,401
655
RodrickMci
Today's Birthdays
tphegley (37)
Related Links
» SmaugMuds » 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 12:11 pm
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 12:25 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,647
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 1:40 pm   Last edited May 15, 2008 1:52 pm 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 >>