Re: Why frameworks not passed to ld as -framework argument ?
Re: Why frameworks not passed to ld as -framework argument ?
- Subject: Re: Why frameworks not passed to ld as -framework argument ?
- From: Chris Suter <email@hidden>
- Date: Thu, 23 Aug 2007 10:07:13 +1000
On 23/08/2007, at 9:05 AM, Jerry Krinock wrote:
First of all, thanks to Chris and Kyle, I've re-factored two
frameworks out of my project:
FrameworkT (to be loaded in Tiger only)
FrameworkC (stuff needed by both FrameworkT and main app -- oh,
well!)
But now I'm sidetracked onto a new problem. FrameworkT fails
linking, unable to find symbols from FrameworkC or FrameworkS
(another framework). In the gui of the project for FrameworkT, I
have among "Groups & Files":
External Frameworks and Libraries
Linked Frameworks
Cocoa.framework
FrameworkC.framework
FrameworkS.framework
So, in the Build transcript, among the arguments to ld, I expect to
see:
-framework Cocoa -framework FrameworkC -framework FrameworkS
But I see only:
-framework Cocoa
So, of course that's why ld can't find their symbols.
What could cause Xcode to ignore an included framework from the gui
when preparing arguments for ld???
It's whatever is in the Target's "Link Binary With Libraries" section
that matters so check that. The screenshot you've sent doesn't show
that.
Also, I'm not sure how far you'll get by using a framework rather
than a bundle. I was thinking it would be easier to load a bundle at
runtime. Frameworks, as far as I know, are loaded by the dynamic
linker when you run the program and so I think you're going to end up
with the same problem that you originally had.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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