Date: Tue, 1 Apr 2014 10:33:34 +0000 From: Mayuresh Kathe <mayuresh@kathe.in> To: freebsd-questions@freebsd.org Subject: freebsd : 10 : clang : fatal error : file not found Message-ID: <20140401103330.GA7507@SDF.ORG>
next in thread | raw e-mail | index | archive | help
hello, i'm trying to compile a simple obj-c "hello world" program (below); #include <objc/Object.h> @interface Greeter:Object { } - (void)greet; @end #include <stdio.h> @implementation Greeter - (void)greet { printf("Hello, World!\n"); } @end #include <stdlib.h> int main(void) { id myGreeter; myGreeter=[Greeter new]; [myGreeter greet]; [myGreeter free]; return EXIT_SUCCESS; } using "clang hello.m" and "clang -lobjc hello.m". both invocations give the same error message; fatal error: 'objc/Object.h' file not found i did a "locate Object.h" and the file exists at; /usr/local/include/objc/Object.h is there anything i should be doing to get that path included in some environment variable? thanks, ~mayuresh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140401103330.GA7507>