• 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: Cross-development references to system dylibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-development references to system dylibs


  • Subject: Re: Cross-development references to system dylibs
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 15 Nov 2005 08:13:19 -0800

On Nov 15, 2005, at 7:48 AM, Jeffrey Johnson wrote:

Delete and add a reference to MacOSX10.4u.sdk/usr/lib/libz.1.2.3.dylib this time. STILL undefined. Delete and add a reference to /usr/lib/libz.dylib (the lib on my active OS). Symbols are now found.

I thought the concept of the cross-development SDK was to use its references instead of using ones tied to the OS version on the development box, and the "Cross Development Programming Guide" seems to confirm this, but these refs don't resolve at link time. (BTW, a shell script that I use to do some post-processing confirms that SDKROOT is set to /Developer/SDK/MacOSX10.4u.sdk .)

Which references should I be using, and will my app (built against my 10.4.2 box) have problems running on a different variant of 10.4.x?

Two things: Xcode 2.2, unlike earlier versions of Xcode and Project Builder, preserve references to symlinks and pass them through to the linker, so the linker will be told to link against libz.dylib instead of the specific libz.1.2.3.dylib.


Second, as Shawn said, you should just point to the libz in /usr/lib and let Xcode apply the SDK prefix for you.

This should be working, so it would help if you'd copy and paste the linker invocation line for your executable.

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: Cross-development references to system dylibs
      • From: Jeffrey Johnson <email@hidden>
References: 
 >Cross-development references to system dylibs (From: Jeffrey Johnson <email@hidden>)

  • Prev by Date: Re: XCode 2.2 internal error
  • Next by Date: Subversion SSH authentication
  • Previous by thread: Cross-development references to system dylibs
  • Next by thread: Re: Cross-development references to system dylibs
  • Index(es):
    • Date
    • Thread