• 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: Adding a symlink (not its target) to a project (libz.dylib post security update)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a symlink (not its target) to a project (libz.dylib post security update)


  • Subject: Re: Adding a symlink (not its target) to a project (libz.dylib post security update)
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 19 Aug 2005 10:08:12 -0400
  • Organization: Rogue Research

On 2005-08-18 13:21, Sean McBride said:

>What is the right way to link against this library?  I need my app to
>run on 10.2.8 and later, and use whatever version of libz they have on
>their system.

Someone gave me a solution off-list, which I'll post here for the
benefit of others/the archives.  Basically, don't add libz.dylib to the
project at all, instead link against it by putting '-lz' in the 'other
linker flags' (note the lack of '.dylib' extension and prefix 'lib', the
'-l' means 'link' I suppose).

(I keep forgetting to stop thinking like a Mac user when I use Xcode!,
what with all that drag and drop nonsense and stuff.  Command line flags
are the way!)

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

References: 
 >Adding a symlink (not its target) to a project (libz.dylib post security update) (From: "Sean McBride" <email@hidden>)
 >Re: Adding a symlink (not its target) to a project (libz.dylib post security update) (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: How to stop set_debug_pwd at head of Info.plist file
  • Next by Date: Code change not updating code completion
  • Previous by thread: Re: Adding a symlink (not its target) to a project (libz.dylib post security update)
  • Next by thread: How to build a code library
  • Index(es):
    • Date
    • Thread