Re: Weak linking framework with bundle ?
Re: Weak linking framework with bundle ?
- Subject: Re: Weak linking framework with bundle ?
- From: Mike Richmond <email@hidden>
- Date: Fri, 5 Nov 2004 09:21:33 +0000
At 9:34 am -0800 4/11/04, Eric Albert wrote:
On Nov 4, 2004, at 9:04 AM, Mike Richmond wrote:
My link command is:
/usr/bin/g++2 -Wl,-weak_framework -Wl,<framework_name>
-F<framework_location> -bundle ...
and I am running 10.3.4. Might this be a failing of gcc2?
Weak linking was added in 10.2 and therefore almost certainly
requires at least the developer tools that shipped with 10.2.
I'm using the 10.3 developer tools.
Actually,
<http://developer.apple.com/technotes/tn2002/tn2064.html> says "It
is highly recommended that you use the December 2002 toolset if you
want to use weak linking and the Availability Macros."
If this is meant to be read as "don't try this with GCC 2.95.2" then
I suggest it needs rewording. I've read this tech note many times
and never interpreted it in that way.
GCC 2.95.2, though it was included in that tools distribution for
backwards compatibility, wasn't updated to include any new features
in 10.2.
Well GCC 2.95.2 works fine for weak linking the framework with an app.
I'd strongly suggest using GCC 3.1 (or, better yet, 3.3) instead.
(For that matter, 3.1 and 3.3 are much better than 2.95.2 for many
other reasons. You shouldn't have a need for 2.95.2 at all.)
Yes, I hear that, but I've seen nothing to suggest that weak linking
is not supported by 2.95.2, and it certainly works in some cases.
Should I be able to weak link a framework to a bundle at all (I
assume so as the tools let me try)? With 3.3? With 3.1? With
2.95.2?
Mike
_______________________________________________
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