Linking against libcrypto under 10.3 and having app work under 10.2
Linking against libcrypto under 10.3 and having app work under 10.2
- Subject: Linking against libcrypto under 10.3 and having app work under 10.2
- From: Paul Haddad <email@hidden>
- Date: Tue, 24 Feb 2004 17:59:26 -0600
Hi All,
Got a somewhat tricky problem. I'm trying to use some code that uses
libcrypto under 10.2 & 10.3. I've tried the following
1. Just link against 10.3 and build. Fails under 10.2 since XCode/ld
links against the .9.7 version of libcrypto which isn't available under
10.2
2. Link against .9.0 version of libcrypto. This links with a bunch of
warnings about multiply defined symbols (since some other framework
under 10.3 must be using libcrypto .9.7) and the app fails to launch
3. Switch SDK setting to 10.2.8 and build. This breaks elsewhere in
my project since I have some code that references some functions and
structs that are only available under 10.3.
4. Same as 3 but defining MAC_OS_X_DEPLOYMENT_TARGET to 10.2, and
redefining the structs and C functions as weak imports. This fails
with an undefined symbols message at link time.
I can't figure out why weak linking isn't working with the SDK set to
10.2.x and I can't figure out any way to get things to link properly
using the 10.3 SDK and run under 10.2.
Does anyone have any suggestions on how to get this stuff working?
---
Paul Haddad (email@hidden)
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.