[OasisOLC DG] [NEWBIE] [WIN95/MSVC5] medit.c bugs!

From: JWoodsIII (JWoodsIII@AOL.COM)
Date: 05/11/98


I was trying to compile Circle after handpatching OasisOLC (yuck), and I got
through everything fine (except for a few little errors here and there) until
medit.c. I think there must be a ) or } missing, but I can't seem to find it.
Here's what I got.

medit.c(180) : error C2065: 'MPROG_DATA' : undeclared identifier
medit.c(180) : error C2065: 'temp' : undeclared identifier
medit.c(181) : error C2065: 'head' : undeclared identifier
medit.c(197) : error C2039: 'mobprogs' : is not a member of 'index_data'
medit.c(198) : error C2059: syntax error : ')'
medit.c(198) : error C2059: syntax error : '}'
medit.c(199) : warning C4047: '=' : 'int ' differs in levels of indirection
from 'struct mob_prog_data *'
medit.c(200) : error C2039: 'mobprogs' : is not a member of 'index_data'
medit.c(200) : error C2223: left of '->next' must point to struct/union
medit.c(201) : error C2037: left of 'type' specifies undefined struct/union
'mob_prog_data'
medit.c(201) : error C2223: left of '->type' must point to struct/union
medit.c(202) : error C2037: left of 'arglist' specifies undefined struct/union
'mob_prog_data'
medit.c(202) : error C2223: left of '->arglist' must point to struct/union
medit.c(202) : error C2198: 'str_dup' : too few actual parameters
medit.c(203) : error C2037: left of 'comlist' specifies undefined struct/union
'mob_prog_data'
medit.c(203) : error C2223: left of '->comlist' must point to struct/union
medit.c(203) : error C2198: 'str_dup' : too few actual parameters
medit.c(204) : error C2223: left of '->next' must point to struct/union
medit.c(205) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(205) : error C2059: syntax error : ')'
medit.c(205) : error C2059: syntax error : '}'
medit.c(206) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(209) : warning C4047: '=' : 'struct mob_prog_data *' differs in levels
of indirection from 'int '
medit.c(454) : error C2039: 'mobprogs' : is not a member of 'index_data'
medit.c(455) : error C2039: 'progtypes' : is not a member of 'index_data'
medit.c(455) : error C2037: left of 'type' specifies undefined struct/union
'mob_prog_data'
medit.c(457) : error C2039: 'progtypes' : is not a member of 'index_data'
medit.c(457) : error C2037: left of 'type' specifies undefined struct/union
'mob_prog_data'
medit.c(458) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(479) : error C2065: 'mob_prog' : undeclared identifier
medit.c(479) : warning C4047: '=' : 'int ' differs in levels of indirection
from 'void *'
medit.c(479) : error C2106: '=' : left operand must be l-value
medit.c(560) : error C2039: 'mobprogs' : is not a member of 'index_data'
medit.c(562) : error C2223: left of '->arglist' must point to struct/union
medit.c(562) : error C2198: 'strcpy' : too few actual parameters
medit.c(564) : error C2223: left of '->comlist' must point to struct/union
medit.c(564) : error C2198: 'strcpy' : too few actual parameters
medit.c(566) : warning C4047: 'function' : 'struct mob_prog_data *' differs in
levels of indirection from 'int '
medit.c(566) : warning C4024: 'medit_get_mprog_type' : different types for
formal and actual parameter 1
medit.c(568) : error C2223: left of '->next' must point to struct/union
medit.c(617) : error C2037: left of 'type' specifies undefined struct/union
'mob_prog_data'
medit.c(618) : error C2065: 'IN_FILE_PROG' : undeclared identifier
medit.c(618) : error C2051: case expression not constant
medit.c(619) : error C2065: 'ACT_PROG' : undeclared identifier
medit.c(619) : error C2051: case expression not constant
medit.c(620) : error C2065: 'SPEECH_PROG' : undeclared identifier
medit.c(620) : error C2051: case expression not constant
medit.c(621) : error C2065: 'RAND_PROG' : undeclared identifier
medit.c(621) : error C2051: case expression not constant
medit.c(622) : error C2065: 'FIGHT_PROG' : undeclared identifier
medit.c(622) : error C2051: case expression not constant
medit.c(623) : error C2065: 'HITPRCNT_PROG' : undeclared identifier
medit.c(623) : error C2051: case expression not constant
medit.c(624) : error C2065: 'DEATH_PROG' : undeclared identifier
medit.c(624) : error C2051: case expression not constant
medit.c(625) : error C2065: 'ENTRY_PROG' : undeclared identifier
medit.c(625) : error C2051: case expression not constant
medit.c(626) : error C2065: 'GREET_PROG' : undeclared identifier
medit.c(626) : error C2051: case expression not constant
medit.c(627) : error C2065: 'ALL_GREET_PROG' : undeclared identifier
medit.c(627) : error C2051: case expression not constant
medit.c(628) : error C2065: 'GIVE_PROG' : undeclared identifier
medit.c(628) : error C2051: case expression not constant
medit.c(629) : error C2065: 'BRIBE_PROG' : undeclared identifier
medit.c(629) : error C2051: case expression not constant
medit.c(650) : error C2037: left of 'arglist' specifies undefined struct/union
'mob_prog_data'
medit.c(650) : error C2037: left of 'arglist' specifies undefined struct/union
'mob_prog_data'
medit.c(653) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(678) : error C2037: left of 'arglist' specifies undefined struct/union
'mob_prog_data'
medit.c(678) : error C2037: left of 'arglist' specifies undefined struct/union
'mob_prog_data'
medit.c(679) : error C2037: left of 'comlist' specifies undefined struct/union
'mob_prog_data'
medit.c(679) : error C2037: left of 'comlist' specifies undefined struct/union
'mob_prog_data'
medit.c(1137) : error C2027: use of undefined type 'mob_prog_data'
medit.c(1138) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1139) : error C2037: left of 'type' specifies undefined struct/union
'mob_prog_data'
medit.c(1140) : error C2037: left of 'arglist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1141) : error C2037: left of 'comlist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1149) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1166) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1169) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1169) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1169) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1169) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1169) : error C2037: left of 'next' specifies undefined struct/union
'mob_prog_data'
medit.c(1170) : error C2037: left of 'arglist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1170) : error C2198: 'free' : too few actual parameters
medit.c(1171) : error C2037: left of 'comlist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1171) : error C2198: 'free' : too few actual parameters
medit.c(1192) : error C2037: left of 'comlist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1193) : error C2037: left of 'comlist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1193) : warning C4133: 'function' : incompatible types - from 'struct
descriptor_data *' to 'const char *'
medit.c(1193) : error C2198: 'write_to_output' : too few actual parameters
medit.c(1194) : error C2037: left of 'comlist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1194) : error C2198: 'str_dup' : too few actual parameters
medit.c(1196) : error C2037: left of 'comlist' specifies undefined
struct/union 'mob_prog_data'
medit.c(1232) : error C2037: left of 'type' specifies undefined struct/union
'mob_prog_data'
medit.c(1238) : error C2037: left of 'arglist' specifies undefined
struct/union 'mob_prog_data'
NMAKE : fatal error U1077: 'D:\DEVSTUDIO\VC\BIN\cl.exe' : return code '0x2'
Stop.
Error executing NMAKE.


That's 92 errors, btw. :-(
I couldn't figure out even one of them, cept for the last one "NMAKE: fatal
error..."

Thanks,
-JW


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST