Date: Tue, 8 Jun 1999 10:43:40 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: freebsd-questions@freebsd.org Subject: How to include my head file? Message-ID: <Pine.GSO.3.96.990608103449.15332A-100000@sol.cs.binghamton.edu>
next in thread | raw e-mail | index | archive | help
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 <ufs/ufs/test.h> The compiler says it can not find the file test.h. But it does not complain about an existing head file, like: #include <ufs/ufs/dir.h> I have to declare the following (with complete pathname): #include </usr/src/sys/ufs/ufs/test.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990608103449.15332A-100000>