Re: #includes in xcode
Re: #includes in xcode
- Subject: Re: #includes in xcode
- From: David Fang <email@hidden>
- Date: Mon, 13 Feb 2006 18:25:01 -0500 (EST)
> What algorithm does xcode use to find files specified by
> #import <foo.h>
> and
> #import "bar.h"
> ?
> If someone can tell me where in the documentation to find the answers
> to these questions, rather than answering them directly, so much the
If you make an empty file, say foo.c
and run: gcc -v -save-temps -c foo.c
you'll see a message that tells you something like:
#include "..." search starts here:
#include <...> search starts here:
/usr/include/gcc/darwin/3.3/c++
/usr/include/gcc/darwin/3.3/c++/ppc-darwin
/usr/include/gcc/darwin/3.3/c++/backward
/usr/local/include
/usr/include/gcc/darwin/3.3
/usr/include
End of search list.
I don't know how to generate this without passing a dummy source file.
If you pass more -I(path) arguments on the command line, those will show
up in the search list for "...".
David Fang
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden