Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
- Subject: Re: Using libcrypto & the 10.6 SDK with a minimum OS requirement of 10.5
- From: "email@hidden" <email@hidden>
- Date: Sat, 19 Sep 2009 15:50:16 +0100
On 19 Sep 2009, at 10:58, Jean-Daniel Dupas wrote:
You should copy the libcrypto from the 10.5 SDK in your project and
link your executable on this file.
Note that you don't have to distribute this file, just putting it
somewhere the linker can find it, so your executable will use the
system's libcrypto.0.9.7.dylib.
I have successfully linked to libcrypto.0.9.7.dylib on 10.6 and 10.5
using this stub method.
You may still run into some linkage issues though due to the fact that
by default you will be linking using the 0.9.8 header.
eg: In 0.9.7 BIO_set_flags() is defined as a macro, under 0.9.8 it is
a function leading to a symbol not found error at link time against
0.9.7.
I worked around this by declaring and utilising
#define BIO_set_flags_097(b,f) ((b)->flags|=(f))
Jonathan Mitchell
Developer
http://www.mugginsoft.com
_______________________________________________
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:
This email sent to email@hidden