From owner-freebsd-questions Tue Jun 8 7:55:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sol (cs1-gw.cs.binghamton.edu [128.226.171.72]) by hub.freebsd.org (Postfix) with SMTP id 7B59714DEB for ; Tue, 8 Jun 1999 07:55:10 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from localhost (zzhang@localhost) by sol (SMI-8.6/8.6.9) with SMTP id KAA15355 for ; Tue, 8 Jun 1999 10:43:41 -0400 Date: Tue, 8 Jun 1999 10:43:40 -0400 (EDT) From: Zhihui Zhang To: freebsd-questions@freebsd.org Subject: How to include my head file? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I modify the kernel a little bit. I add a file "test.h" under the directory /usr/src/sys/ufs/ufs. But when I declare #include The compiler says it can not find the file test.h. But it does not complain about an existing head file, like: #include I have to declare the following (with complete pathname): #include Why there is a difference between dir.h and test.h? How to let the compiler start searching for head files from /usr/src? Thanks for any help. -------------------------------------------------- Zhihui Zhang. Please visit http://www.freebsd.org -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message