Re: Importing framework include files
Re: Importing framework include files
- Subject: Re: Importing framework include files
- From: "R.L. Grigg" <email@hidden>
- Date: Thu, 15 May 2008 17:18:34 -0700
On May 14, 2008, at 1:35 PM, R.L. Grigg wrote:
On May 14, 2008, at 12:21 PM, Chris Espinosa wrote:
On May 14, 2008, at 12:01 PM, R.L. Grigg wrote:
In a Cocoa project (OSX 10.5.2, Xcode 3.0) when I add a framework
from /Library/Frameworks into the project "Linked Frameworks"
group how do I then reference one of the frameworks include files
from my code?
Using either #import "name.h" or #import <name.h> comes up with
"No such file or directory". Doesn't adding a framework cause
Xcode to automatically add the Headers subfolder in it's -I search
path for includes?
No, it doesn't add the path to the framework's Headers folder to
the -I (include file directory) list to the compiler, it adds the
path to the framework proper to the -F (framework directory) list
to the compiler.
You need to use framework-style includes, that is <framework/
header.h> to refer to header files in frameworks.
Okay, I'm still doing something wrong since I still get the error
using framework-style includes.
So... is this my bug or an Xcode bug?
Russ
_______________________________________________
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