Re: compiling errors

From: Robert Sinland (rsinland@ERSKINE.POLARISTEL.NET)
Date: 08/11/97


;P wrote:
>
> ok...i recently tried to implement the events code from the ftp site, and
> when i tried to compile i got the error :
>
> In file included from event.c:16:
> structs.h:1088: parse error before `socket_t'
> structs.h:1088: warning: no semicolon at end of struct or union
> structs.h:1089: warning: data definition has no type or storage class
> structs.h:1123: parse error before `}'
>
> so i looked at the code that this pointed to, even though i know that i
> hadn't changed anything there...and alas there were no parse errors...i
> removed the few changes required for the event code, and recompiled..with
> no errors...so i figured it was an error with the events...but..today i
> got the mailindex util from the ftp site..and when i tried to compile, i
> got the exact same errors...i recompiled other utils that include
> structs.h and they all compiled fine...so...am i missing something?
>
> thanks
> siv
    Hmm, I had that one too.  Not sure how I fixed it, but think it went
like this.

from event.c

#include <stdio.h>  <---yank these two lines
#include <stdlib.h> <-----

#include "conf.h"  <---add these two
#include "sysdep.h"

#include "structs.h"
#include "events.h"
#include "utils.h"
#include "comm.h"
#include "handler.h"
#include "db.h"
Hope that was it :)
RS


     +------------------------------------------------------------+
     | 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