[cfe-dev] InitHeaderSeach defaultSystemIncludePaths

Chris Lattner clattner at apple.com
Fri May 1 09:20:51 PDT 2009


On Apr 30, 2009, at 7:06 PM, moataz ragab wrote:

> Hi,
>
> I am trying to use the initHeaderSeach and initialize it with the  
> default system include paths. On my installation, Fedora 10 the one  
> of the system include path (needed for stdef.h) is not one of the  
> listed in the initHeaderSeach. So In my code, I used the AddPath and  
> now it works. Also on different version with 64 bit fedora 9, it is  
> on /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include

Hi Moataz,

Clang includes its own stddef.h file that it should fine relative to  
the path of the executable.  Do you know why this isn't working?

-Chris

>
>
> Below is a sample code:
>
>   InitHeaderSearch init(context.headers);
>   init.AddDefaultSystemIncludePaths(context.opts);
>   init.AddPath("/usr/lib/gcc/i386-redhat-linux/4.3.2/include/",
>            (InitHeaderSearch::IncludeDirGroup) 2, true, false, false);
>
> Best regards,
> Moataz
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list