The solution to this is pretty simple, don't link to libcrypto.
Instead, just #import <CommonCrypto/CommonDigest.h> in your file and use the
CC_ prefixed functions in your app, such as CC_MD5.

--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/


On Fri, Aug 28, 2009 at 3:41 PM, David Riggle <rig...@comcast.net> wrote:

> I converted my project to the 10.6 SDK, but now my app won't launch on
> Leopard:
>
> myApp[595]: dyld: Library not loaded: /usr/lib/libcrypto.0.9.8.dylib
> myApp[595]:  Referenced from: /Users/dave/Desktop/myApp.app/Contents/myApp
> myAppl[595]:   Reason: image not found
>
> If I select the older libcrypto in Xcode, I get this compile error:
>
> ld: cannot link directly with
> /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libcrypto.0.9.7.dylib
>
> If I do this:
>
> cd /Developer/SDKs/MacOSX10.6.sdk/usr/lib/
> sudo mv libcrypto.0.9.7.dylib libcrypto.0.9.7.back
> sudo cp /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libcrypto.0.9.7.dylib .
>
> I can link against the old library, but I get the following link error:
>
> Undefined symbols: _BIO_set_flags
>
> Anybody know where that symbol was defined in 10.5? I really don't like
> this Frankenstein's SDK that I'm having to cobble together...
>
> Dave
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> 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/steven.degutis%40gmail.com
>
> This email sent to steven.degu...@gmail.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to