Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #includes in xcode



> 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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >#includes in xcode (From: Roland Silver <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.