Re: Library Include Questions
Re: Library Include Questions
- Subject: Re: Library Include Questions
- From: Roland King <email@hidden>
- Date: Sat, 21 Sep 2013 08:03:54 +0800
On 21 Sep, 2013, at 12:42 am, Fritz Anderson <email@hidden> wrote:
>
> By the way, going the other way: The clang in Xcode 5 implements modules and enables them by default in new projects (CLANG_ENABLE_MODULES). http://clang.llvm.org/docs/Modules.html says the feature is experimental, but there it is. The upshot is that if you #import <CoreImage/CoreImage.h>, clang will automatically add CoreImage.framework to the link phase. Don't rely on this if you share the project with someone using an earlier version of the compiler. I don't know whether the #imports in UIColor and UIImage are sufficient.
>
> — F
You can opt in on older projects by setting Enable Modules and Link Frameworks Automatically in the build settings. To really use modules in the way they were intended you should I believe use @import, so in this case it would be @import CoreImage;, I think. The compatibility flags are handy but as modules become more widely used, the real syntax adds some extra options (like importing just a few classes)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden