From owner-freebsd-questions Sun Mar 21 23:46:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (Postfix) with SMTP id 9AE3F150B1 for ; Sun, 21 Mar 1999 23:46:14 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 2350 invoked by uid 1001); 22 Mar 1999 07:41:23 -0000 Message-ID: <19990322074123.2349.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Mon, 22 Mar 1999 17:41:23 +1000 From: Greg Black To: Patrick Seal Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /usr/include/sys/socket.h errors References: In-reply-to: of Sun, 21 Mar 1999 17:36:12 EST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm tried to compile gdict, but I keep getting errors about socket.h and > inet.h > > gcc -Wall -O2 `gtk-config --cflags` `gtk-config --libs` gdict.c -o gdict > In file included from gdict.c:15: > /usr/include/sys/socket.h:139: parse error before `u_char' It's only a couple of weeks since this was last answered here. The first step in solving this kind of basic compilation problem is to read the man pages. If you do, you'll see that you must include *before* . The second thing is to learn to be a bit discriminating in the choice of what to include in your questions. The first error line was all that was needed -- the million lines that followed added nothing and could have been omitted comfortably. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message