From owner-freebsd-questions Tue Jan 9 17:17:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gecko.eric.net.au (gecko.eric.net.au [203.102.228.3]) by hub.freebsd.org (Postfix) with ESMTP id C525537B400 for ; Tue, 9 Jan 2001 17:17:08 -0800 (PST) Received: (from ghcrompton@localhost) by gecko.eric.net.au (8.9.3/8.8.7) id MAA29654 for freebsd-questions@freebsd.org; Wed, 10 Jan 2001 12:19:11 +1100 Date: Wed, 10 Jan 2001 12:19:11 +1100 From: "Geoffrey Crompton (RMIT Guest)" To: FreeBSD-Questions Subject: programming in freebsd related questions Message-ID: <20010110121911.A29635@gecko.eric.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've just started to do some programing in freebsd, and I've found a few things that I'm unsure about. When I #include things like sys/socket.h and netinet/in.h, I get heaps of compiler errors, unless I do a #include before I #include the others. Why is that? Also, I've noticed multiple copies of socket.h, sitting in /usr/src/sys, and /usr/include. I think that /usr/src is where the kernel all get's built from. Does the make build/installworld process copy all the header files that a user application might want over to the /usr/include area? If I'm hunting through header files for definitions, which ones should I use? And finally, is there a better mailing list for these questions, or am I on the right one? Thanks! Geoff Crompton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message