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

Members: 0
Guests: 8
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 » Codebases » AFKMud Support & Development » Bugfix - info
Forum Rules | Mark all | Recent Posts

Bugfix - info
< Newer Topic :: Older Topic > Problem

Pages:<< prev 1 next >>
Post is unread #1 May 15, 2005, 7:39 am
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

I'd like to include that the bugfix for afkmud's "dispose" macro requires that you add:
#include <typeinfo>
to the top of any files using the dispose, imcdispose, or I3_dispose macros.
       
Post is unread #2 May 15, 2005, 10:54 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Well actually it would be simpler to include it in mud.h but yes, you are right.
       
Post is unread #3 May 15, 2005, 12:14 pm   Last edited May 15, 2005, 12:17 pm by Txzeenath
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Ya.. I included it into each file just cuz i'm stubborn.


You may get errors with polymorph.c ... I think this should work fine:

#undef DISPOSE
#define DISPOSE(point)                                                          \
do                                                                                      \
{                                                                                       \
   if((point))                                                                  \
   {                                                                                    \
        free((point));                                                          \
        (point) = NULL;                                                         \
   }                                                                                    \
} while(0)

than at the end of the file
#undef DISPOSE
       
Post is unread #4 May 15, 2005, 1:09 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

What kind of errors? The whole point of the new macros is so they will flag errors when something is done wrong. That would imply to me that there are problems that need fixing in polymorph.c :)
       
Post is unread #5 May 15, 2005, 1:24 pm
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Here's the error:


/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: `typeinfo for char_morph*' referenced in section `.text' of o/polymorph.o: defined in discarded section `.gnu.linkonce.r._ZTIP10char_morph' of o/polymorph.o








It happens after the files are compiled, so I think it's part of the linking.... plus the fact the error has the word "link" in it :lol
       
Pages:<< prev 1 next >>