From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 19:47:58 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE2DD4C5 for ; Tue, 1 Apr 2014 19:47:58 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:c:538::197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA7E0234 for ; Tue, 1 Apr 2014 19:47:58 +0000 (UTC) Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id B390241C064 for ; Tue, 1 Apr 2014 21:47:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter14-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter14-d.gandi.net (mfilter14-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id g4D0-wjf45Ta for ; Tue, 1 Apr 2014 21:47:55 +0200 (CEST) X-Originating-IP: 192.94.73.15 Received: from SDF.ORG (SDF.ORG [192.94.73.15]) (Authenticated sender: mayuresh@kathe.in) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 8117D41C054 for ; Tue, 1 Apr 2014 21:47:54 +0200 (CEST) Date: Tue, 1 Apr 2014 19:47:49 +0000 From: Mayuresh Kathe To: freebsd-questions@freebsd.org Subject: Re: including /usr/local/include : how? Message-ID: <20140401194748.GA25778@SDF.ORG> References: <20140401172133.GA14322@SDF.ORG> <20140401173425.GB12814@SDF.ORG> <44k3b86ghm.fsf@lowell-desk.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44k3b86ghm.fsf@lowell-desk.lan> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2014 19:47:59 -0000 On Tue, Apr 01, 2014 at 02:40:05PM -0400, Lowell Gilbert wrote: > Mayuresh Kathe writes: > > > On Tue, Apr 01, 2014 at 05:21:35PM +0000, Mayuresh Kathe wrote: > >> hello, > >> > >> did some more searching, and it looks like one > >> must set a C_INCLUDE_PATH variable for > >> non-standard include locations. > >> > >> but, how do i include non-standard obj-c files? > >> they are all in /usr/local/include/objc. > > > heck, i used almost every option mentioned > > in the clang manual page, nothing helps. :( > > Try the '-I' option, listed under "preprocessor options". > > This is the same convention as nearly every other C compiler. yes, tried that one too, as below; clang -I/usr/local/include/objc -ObjC hello.m -o hello no difference, the same error persists. :( ~mayuresh