I just downloaded Circle patch level 12 and tried to compile it and I got the following error: act.other.c act.other.c(728) : error C2079: 'fbuf' uses undefined struct 'stat' act.other.c(768) : error C2224: left of '.st_size' must have struct/union type NMAKE : fatal error U1077: 'cl' : return code '0x2' Lines 724-731 and 763-776 of act.other.c are as follows: *snip* ACMD(do_gen_write) { FILE *fl; char *tmp, *filename, buf[MAX_STRING_LENGTH]; struct stat fbuf; extern int max_filesize; time_t ct; *snip* and... *snip* if (stat(filename, &fbuf) < 0) { perror("Error statting file"); return; } if (fbuf.st_size >= max_filesize) { send_to_char("Sorry, the file is full right now.. try again later.\r\n", c return; } if (!(fl = fopen(filename, "a"))) { perror("do_gen_write"); send_to_char("Could not open the file. Sorry.\r\n", ch); return; } *snip* Ok, thats all, thanks :) Tharin +------------------------------------------------------------+ | 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