On 14 Jun 2009, at 17:52, Andrew Price wrote:
> On 14/06/09 17:15, David Chisnall wrote:
>> What OS are you using and where is objc.h? Clang only searches /usr/
>> include and /usr/local/include by default for C / ObjC headers. If
>> your headers are somewhere else, take a look in lib/Frontend/
>> InitHeaderSearch.cpp - we can add other search paths if they are
>> required for specific operating systems.
>
> I'm using Debian and the only objc.h I can find (apart from the one in
> Etoile/Languages/libobjc/objc) is:
>
> /usr/lib/gcc/x86_64-linux-gnu/4.3/include/objc/objc.h
>
> Just to check this isn't unusual I looked on Fedora too, and it puts
> it
> here:
>
> /usr/lib/gcc/i386-redhat-linux/4.3.2/include/objc/objc.h
Wow, that's completely messed up. See if this patch makes it work for
you:
Index: lib/Frontend/InitHeaderSearch.cpp
===================================================================
--- lib/Frontend/InitHeaderSearch.cpp (revision 73341)
+++ lib/Frontend/InitHeaderSearch.cpp (working copy)
@@ -179,6 +179,8 @@
AddPath("/usr/include/c++/4.2", System, true, false, false);
}
+ AddPath("/usr/lib/gcc/x86_64-linux-gnu/4.3/include", System, false,
false,
+ false);
AddPath("/usr/local/include", System, false, false, false);
AddPath("/usr/include", System, false, false, false);
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss