> On Dec 15, 2014, at 4:34 AM, H Miersch <[email protected]> wrote:
>
> Hello..
>
>> (You aren't putting your header name in angle brackets, right?)
>
> Well, some are in < > and others are in " ". What's the difference?
>
Aha.
The preprocessor uses different strategies for angle- and quote-delimited
#includes.
The quote strategy is local, starting at the directory containing the current
source. It then tries "system" directories like /usr/bin/include. There are
compiler switches to add search paths, including frameworks, and to abandon the
search without resort to system locations. Build Settings include items for
those options and more. Xcode adds paths by default.
Angle-delimited #includes start with the system paths, ignoring user
directories. (There is an option to search user locations anyway. Don't use it
unless you truly want to override a system header in a file you can't alter.
It's error-prone.) If you name a private header in angle brackets, the
preprocessor won't find it.
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]