Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!umn-d-ub!umn-cs!nis!ntmtka!mike From: mike@ntmtka.mn.org (Mike Tietel) Newsgroups: comp.lang.c Subject: Re: help with UNIX include files Message-ID: <2054@ntmtka.mn.org> Date: 17 Jan 90 15:29:18 GMT References: <1990Jan16.202640.357@csusac.csus.edu> <4092@helios.TAMU.EDU> Distribution: usa Organization: Northern Telecom Inc., Minnetonka, MN Lines: 19 In article <4092@helios.TAMU.EDU>, john@stat.tamu.edu (John S. Price) writes: > If you use #include , cpp will look for this file in > /usr/include (it will look for /usr/include/foo.h). If the include > files aren't there, you must use #include "/path.../foo.h", or if it > is in the directory you are compiling from, use #include "foo.h". > This sounds like your problem to me. > Rather than using #include "/path.../foo.h" use #include "foo.h" with the -I/path... option for cpp. That way if the pathname changes for the header file, you won't need to edit every source file, you'll just need to change one string in the Makefile. -- Mike Tietel Northern Telecom, Inc. (612) 932-8017 9701 Data Park, H-200 mike@ntmtka.mn.org Minnetonka, MN 55343 {rosevax,bungia}!ntmtka!mike