Date: Fri, 22 Feb 2002 18:39:02 -0600 From: "Mike Meyer" <mwm-dated-1014856743.a51c28@mired.org> To: "Lane Holcombe" <lane@joeandlane.com> Cc: questions@freebsd.org Subject: Re: Zoinks! #include <not working> Message-ID: <15478.58534.737707.902435@guru.mired.org> In-Reply-To: <17336427@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Lane Holcombe <lane@joeandlane.com> types: > I'm trying to install a port (ksamba) but it keeps failing with > main.cpp:3: kiconloader.h: no such file or directory > but when I use: > locate kiconloader.h > i get: > /usr/local/include/kiconloader.h > > and then when I use: > file `locate kiconloader.h` > i get: > /usr/local/include/kiconloader.h: ASCII C Program Text > > So I tried: > make -I/usr/local/include all > and i get the same failure. > > How can I tell make to use /usr/local/include in it's include path > (without editting the source code?) Make doesn't include .h files, the c compiler does. Assuming the Makefile doesn't set CFLAGS - and it's not at all unusual for them to do so - you can do make CFLAGS=-I/usr/local/include and it should work. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. 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?15478.58534.737707.902435>