On Thu, 11 Sep 1997, Crimson Wizard wrote: > As far as I know... everything went in fine... OasisOLC patched in with 0 > problems, yet I get this thrown at me when I compile: > > gcc -c -g -O -Wall medit.c > medit.c:583: conflicting types for `medit_get_mprog_type' > medit.c:94: previous declaration of `medit_get_mprog_type' > medit.c: In function `medit_parse': > medit.c:1268: syntax error at end of input > *** Error code 1 > > Following is te offending parts of code > > 583: **** remove the const from the function header. > */ > const char *medit_get_mprog_type(struct mob_prog_data *mprog) > { <--------- this is line 583 > switch (mprog->type) { > > 94: > #if defined(OASIS_MPROG) > void medit_disp_mprog(struct descriptor_data *d); > void medit_change_mprog(struct descriptor_data *d); > char *medit_get_mprog_type(struct mob_prog_data *mprog); <-- 94 > #endif > > 1268: > /* > * End of medit_parse(), thank god. > */ > this is 1268.... > > End of the file?! wtf?! > > **** There is a missing '}' in medit_parse() someplace but I don't remember where. I'd just start at the top and match 'em all up. Thats what I had to do. +------------------------------------------------------------+ | 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/08/00 PST