including /usr/local/include : how?
Mayuresh Kathe
mayuresh at kathe.in
Tue Apr 1 19:47:59 UTC 2014
On Tue, Apr 01, 2014 at 02:40:05PM -0400, Lowell Gilbert wrote:
> Mayuresh Kathe <mayuresh at kathe.in> 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
More information about the freebsd-questions
mailing list