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 ➜ SMAUG ➜ SMAUG coding ➜ House Snippet

House Snippet

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


Posted by Lerkista   (57 posts)  Bio
Date Thu 18 Sep 2014 12:00 PM (UTC)
Message
Hi, after some work trying to make the house snippet to work, i have this errors:


o/house.o: In function `do_house(char_data*, char*)':
/home/lerkista/Mud/smaugfuss19/src/house.c:247: undefined reference to `do_house'
/home/lerkista/Mud/smaugfuss19/src/house.c:465: undefined reference to `do_house'
o/house.o: In function `do_accessories(char_data*, char*)':
/home/lerkista/Mud/smaugfuss19/src/house.c:724: undefined reference to `do_accessories'
/home/lerkista/Mud/smaugfuss19/src/house.c:806: undefined reference to `do_accessories'
/home/lerkista/Mud/smaugfuss19/src/house.c:961: undefined reference to `do_accessories'
/home/lerkista/Mud/smaugfuss19/src/house.c:995: undefined reference to `do_accessories'
o/house.o: In function `do_homebuy(char_data*, char*)':
/home/lerkista/Mud/smaugfuss19/src/house.c:1117: undefined reference to `do_homebuy'
/home/lerkista/Mud/smaugfuss19/src/house.c:1159: undefined reference to `do_homebuy'
/home/lerkista/Mud/smaugfuss19/src/house.c:1271: undefined reference to `do_homebuy'
/home/lerkista/Mud/smaugfuss19/src/house.c:1371: undefined reference to `do_homebuy'
o/house.o: In function `do_sellhouse(char_data*, char*)':


I don´t know why house.c can't find their own functions

I have declared the functions in mud.h, house.h and in house.c and nothing works

Any ideas??

Thankx
Top

Posted by Lerkista   (57 posts)  Bio
Date Reply #1 on Thu 18 Sep 2014 02:04 PM (UTC)
Message
I´ve fixed the errors

the problem was house.c has:

void do_house( CHAR_DATA *ch, char *argument )

and need to have:

void do_house( CHAR_DATA *ch, const char *argument )

to the mud find the function

do that with other functions and now works fine :)
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.


9,950 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.