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, Remcon

Members: 1
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
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,643
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 >>