Re: compiling errors

From: d. hall (dhall@APK.NET)
Date: 08/11/97


// thus on Mon, 11 Aug 1997 11:44:46 -0500, Robert virtually wrote:

>> 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 `}'

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

Man bind(3), and look for the #include files needed.  Bind normally
requires socket_t to be defined.  If socket_t isn't typedef'ed then you
will get that compilation error.  On solaris it's:

        #include <sys/types.h>
        #include <sys/socket.h>

Unless you have a braindead lib, having multiple instances of include files
will not hurt.  Most include files have a #define at the start to prevent
repetition.

d.


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