On Jan 19, 2012, at 16:37 , John Nairn wrote:

> But then I tested on another Mac (10.5.8) and I still get the
> 
> dyld: unknown required load command 0-x80000022
> 
> error message with no more help. If I remove the library from my app resource 
> on the 10.6.8 Mac, it does fail but gives a better error message saying where 
> it looked and that the image was not found.
> 
> My reading said this should all work starting with Leopard, but so far (only 
> testing two machines), I cannot get it to work in Leopard.

This is an unrelated problem, which has been discussed several times on this 
list. The linker is using a load command which is understood only by 10.6+, so 
loading of the library fails under 10.5.

You can research this by googling the error message. That lead me, for example, 
to 
http://stackoverflow.com/questions/1440456/static-libraries-in-version-cross-compiled-program,
 and IIRC the very last answer there (i.e. add '-mmacosx-version-min=10.5' to 
the linker options) is the correct one.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to