From owner-freebsd-questions@FreeBSD.ORG Wed Apr 2 14:34:14 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A9AE9C73 for ; Wed, 2 Apr 2014 14:34:14 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 80CE28F9 for ; Wed, 2 Apr 2014 14:34:14 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 8905F33C22; Wed, 2 Apr 2014 10:34:08 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 4DE7139847; Wed, 2 Apr 2014 10:34:07 -0400 (EDT) From: Lowell Gilbert To: Mayuresh Kathe Subject: Re: including /usr/local/include : how? References: <20140401172133.GA14322@SDF.ORG> <20140401173425.GB12814@SDF.ORG> <44k3b86ghm.fsf@lowell-desk.lan> <20140401194748.GA25778@SDF.ORG> Date: Wed, 02 Apr 2014 10:34:06 -0400 In-Reply-To: <20140401194748.GA25778@SDF.ORG> (Mayuresh Kathe's message of "Tue, 1 Apr 2014 19:47:49 +0000") Message-ID: <44bnwj6bs1.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2014 14:34:14 -0000 Mayuresh Kathe writes: > 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 clang -I/usr/local/include -ObjC hello.m -o hello > no difference, the same error persists. :( The 'objc' directory was already listed in your source file.