Re: Adding a symlink (not its target) to a project (libz.dylib post security update)
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