Re: Library Include Questions
Re: Library Include Questions
- Subject: Re: Library Include Questions
- From: Fritz Anderson <email@hidden>
- Date: Fri, 20 Sep 2013 11:42:24 -0500
On 19 Sep 2013, at 11:56 PM, Patrick Cusack <email@hidden> wrote:
> Well, I just realized that CIFilters don't work on iOS, but my question still stands.
Core Image was added to iOS in version 5.
The Core Image headers are #imported in UIColor.h and UIImage.h, which are in turn #imported by UIKit.h. That's why the compiler did not detect any missing symbols when you compiled; only the linker was able to see that your Core Images references were not backed by the Core Image framework.
(Use #import in preference to #include unless you affirmatively know otherwise.)
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
_______________________________________________
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