I've spent the past 2 weeks combining the SWRIP and SMAUG1.4a codebases together into one, and I'm down to my last error, just sorta stuck on it. it's coming from fread_vendor:
$ make
make smaug
make[1]: Entering directory `/home/KK and Li Li/smaug/src'
gcc -c -O -g3 -Wall -Wuninitialized -DNOCRYPT -DSMAUG -DTIMEFORMAT -DREGEX shops.c
shops.c: In function `fread_vendor':
shops.c:2378: warning: implicit declaration of function `KEY'
rm -f smaug.exe
gcc -lcrypt -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o alias.o antitank.o
archery.o backup.o ban.o bank.o bits.o boards.o build.o charge.o clans.o color.o comm.o commen
ts.o const.o db.o editor.o fight.o finger.o grub.o handler.o hashstr.o hotboot.o house.o ibuild
.o ident.o imm_host.o infochan.o interp.o liquids.o magic.o makeobjs.o misc.o mpxset.o mud_comm
.o mud_prog.o newarena.o pfiles.o planes.o player.o polymorph.o quest.o renumber.o reset.o save
.o services.o sharpen.o shops.o skills.o slay.o special.o starmap.o stat_obj.o tables.o track.o
update.o space.o space2.o bounty.o mapper.o swskills.o
shops.o(.text+0x51c7): In function `fread_vendor':
/home/KK and Li Li/smaug/src/shops.c:2423: undefined reference to `_KEY'
shops.o(.text+0x52c0):/home/KK and Li Li/smaug/src/shops.c:2447: undefined reference to `_KEY'
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/KK and Li Li/smaug/src'
That's fwrite_vendor. The lines it's calling errors to is in fread_vendor right below:
line 2378:
KEY( "Description", mob->description, fread_string(fp));
line 2423:
KEY( "Flags", mob->act, fread_bitvector(fp));
line 2447:
KEY( "Short", mob->short_descr, fread_string(fp));
Can anyone help me with this?
Toy
$ make
make smaug
make[1]: Entering directory `/home/KK and Li Li/smaug/src'
gcc -c -O -g3 -Wall -Wuninitialized -DNOCRYPT -DSMAUG -DTIMEFORMAT -DREGEX shops.c
shops.c: In function `fread_vendor':
shops.c:2378: warning: implicit declaration of function `KEY'
rm -f smaug.exe
gcc -lcrypt -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o alias.o antitank.o
archery.o backup.o ban.o bank.o bits.o boards.o build.o charge.o clans.o color.o comm.o commen
ts.o const.o db.o editor.o fight.o finger.o grub.o handler.o hashstr.o hotboot.o house.o ibuild
.o ident.o imm_host.o infochan.o interp.o liquids.o magic.o makeobjs.o misc.o mpxset.o mud_comm
.o mud_prog.o newarena.o pfiles.o planes.o player.o polymorph.o quest.o renumber.o reset.o save
.o services.o sharpen.o shops.o skills.o slay.o special.o starmap.o stat_obj.o tables.o track.o
update.o space.o space2.o bounty.o mapper.o swskills.o
shops.o(.text+0x51c7): In function `fread_vendor':
/home/KK and Li Li/smaug/src/shops.c:2423: undefined reference to `_KEY'
shops.o(.text+0x52c0):/home/KK and Li Li/smaug/src/shops.c:2447: undefined reference to `_KEY'
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/KK and Li Li/smaug/src'
/* Write vendor to file */
void fwrite_vendor( FILE *fp, CHAR_DATA *mob )
{
if ( !IS_NPC( mob ) || !fp )
return;
fprintf( fp, "#VENDOR\n" );
fprintf( fp, "Vnum %d\n", mob->pIndexData->vnum );
if (mob->gold > 0)
fprintf (fp, "Gold %d\n",mob->gold);
if ( mob->home )
fprintf( fp, "Home %d\n", mob->home->vnum );
if (mob->owner != NULL )
fprintf (fp, "Owner %s~\n", mob->owner );
if ( QUICKMATCH( mob->description, mob->pIndexData->description) == 0 )
fprintf( fp, "Description %s~\n", mob->description );
if ( QUICKMATCH( mob->short_descr, mob->pIndexData->short_descr) == 0 )
fprintf( fp, "Short %s~\n", mob->short_descr );
if ( QUICKMATCH( mob->long_descr, mob->pIndexData->long_descr) == 0 )
fprintf( fp, "Long %s~\n", mob->long_descr );
fprintf( fp, "Position %d\n", mob->position );
fprintf( fp, "Flags %s\n", print_bitvector(&mob->act) );
fprintf( fp, "Endvendor\n" );
return;
}
That's fwrite_vendor. The lines it's calling errors to is in fread_vendor right below:
line 2378:
KEY( "Description", mob->description, fread_string(fp));
line 2423:
KEY( "Flags", mob->act, fread_bitvector(fp));
line 2447:
KEY( "Short", mob->short_descr, fread_string(fp));
Can anyone help me with this?
Toy