Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Mar 1999 19:25:18 +1000
From:      Greg Black <gjb@comkey.com.au>
To:        Sean-Paul Rees <sean@flame.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: socket.h errors 
Message-ID:  <19990306092518.21473.qmail@alpha.comkey.com.au>
In-Reply-To: <Pine.BSF.4.05.9903051926530.83676-100000@valiant.dreamfire.net>  of Fri, 05 Mar 1999 19:28:44 PST
References:  <Pine.BSF.4.05.9903051926530.83676-100000@valiant.dreamfire.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Problem: I get a strange socket.h set of parse errors, and I can't figure
> out whats wrong.

Easy: you didn't read the man page.  It's the most basic thing
to learn to do when you can't manage a simple compile.

> Information: I get the following errors. How do I fix them?
> [sean@valiant]-~/coding/c/netutil/netutil> make
> gcc -O2 -c main.c
> In file included from netutil.h:18,
>                  from main.c:17:
> /usr/include/sys/socket.h:139: parse error before `u_char'

[Lots of junk snipped -- please be a bit discriminating in what
you include.]

That error always means that you forgot to include <sys/types.h>
before the file that is generating the errors.  As I said, RTFM.

-- 
Greg Black <gjb@acm.org>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990306092518.21473.qmail>