• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic Library being not very dynamic?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic Library being not very dynamic?


  • Subject: Re: Dynamic Library being not very dynamic?
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 13 Dec 2004 09:31:56 -0800


On Dec 13, 2004, at 2:47 AM, stephane sudre wrote:

I'm using libcrypto in a project.

To use it, I added -lcrypto. The project is built on Mac OS X 10.3.

The issue I'm seeing is that it looks like the dynamic behavior is lost.

When I run the project on 10.3, no problem. When it's run on Mac OS X 10.2.8, it crashes because it's trying to load against libcrypto.0.9.7 which is not available on Mac OS X 10.2.8.

What's the appropriate way to link against a dynamic library so that it stays dynamic?

If you want to build an executable that runs on earlier versions of the Mac OS, you have to build it against the SDK for that OS. Libraries are forward-compatible but not necessarily backwards-compatible.


Select your project icon in Xcode and do Get Info. On the General pane select the 10.2 SDK, clean, and rebuild.

http://developer.apple.com/documentation/DeveloperTools/Conceptual/ cross_development/Concepts/cd_overview.html

Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Dynamic Library being not very dynamic?
      • From: Stephane Sudre <email@hidden>
References: 
 >Dynamic Library being not very dynamic? (From: stephane sudre <email@hidden>)

  • Prev by Date: Re: Can't link deployment app with Xcode 1.5
  • Next by Date: Re: Dynamic Library being not very dynamic?
  • Previous by thread: Dynamic Library being not very dynamic?
  • Next by thread: Re: Dynamic Library being not very dynamic?
  • Index(es):
    • Date
    • Thread