Easy Hedit fix? Help pwease?

Posted by X8jedah8x on Mon 15 Dec 2003 12:27 PM — 6 posts, 20,561 views.

#0
I am using a paradox code, rom/rot derivitive.
I put in hedit finished the entire code and it still
dont work, at the end of my compile I get this.

gcc -O -g -o rot act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o alias.o ban.o clans.o comm.o const.o curse.
o db.o db2.o effects.o fight.o flags.o forget.o handler.o healer.o interp.o note.o lookup.o magic.o magic2.o music.o recycle.
o repent.o save.o scan.o sign.o skills.o special.o tables.o update.o wizlist.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save
.o bit.o mem.o string.o olc_mpcode.o mdice.o copyover.o quest.o banks.o auction.o -lcrypt
olc.o(.text+0x95): In function `run_olc_editor':
/home/verge/paradox/src/olc.c:59: undefined reference to `hedit'
collect2: ld returned 1 exit status
make: *** [rot] Error 1

Ive looked at source codes that have hedit in them
and it looks the exact same, what might I be missing?
USA #1
Paste the prototype of your hedit function, along with the place where you use it in olc.c.
#2
In the run_olc_editor in olc.c
it said that

hedit( d->character, d->incomm );
was the messed up line under mpedit
USA #3
OK, now please paste the prototype of your function... in other words, the place where you defined the hedit function.
#4
Ok, First off im not a super good coder, infact im looking for one to help me ON my mud. but I can do well usually.
uhm... my guess is where you define it is where you add in the

DECLARE_DO_FUN ( hedit etc etc part
if not, it must not be defined and the snippet i used wasnt quite finished.
im not exaclty sure where i defined it if it was.
USA #5
In a .c file look for code that says:

void do_hedit(CHAR_DATA * ch, char * argument)


Or something to that effect.

Chances are when you wrote the .c file, you said do_hedit, but in mud.h, you said hedit.

Notice how all the other DECLARE_DO_FUN actually have the do_ in front... "do_mset" for example.

Unless, of course, your version is so changed, that it doesn't have any of that...

It's sort of hard to help you with such partial information. :)