Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined lookup, ObjC, and 64-bit




Unlike the 32 bits runtime, the 64 bits runtime respects class symbols visibility.
If you do not export the class symbol, you cannot use it from an other binary (just like with C or C++ functions and classes).
Actually, I'm conditionnaly using the folowing attribute to solve this issue (IIRC the compiler raises an error if you use with a class symbol on 32 bits arch).


__attribute__((visibility("default")))


You can use 'nm' on your bundle to make sure this is the cause of this error.




Le 12 mai 08 à 20:14, Ken Thomases a écrit :

On May 12, 2008, at 12:39 PM, Nick Zitzmann wrote:
2. How do I fix this without building the abstract superclass into each bundle (which is wasteful)?

This isn't my area of expertise, but isn't this the purpose of the - bundle_loader linker option?


-Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Undefined lookup, ObjC, and 64-bit (From: Nick Zitzmann <email@hidden>)
 >Re: Undefined lookup, ObjC, and 64-bit (From: Ken Thomases <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.