Re: Problem linking to zlib
Re: Problem linking to zlib
- Subject: Re: Problem linking to zlib
- From: Matt Majka <email@hidden>
- Date: Thu, 11 Apr 2002 17:49:38 -0600
You included the header, but forgot to tell PB to link
against the library. You can add -lzlib to other linker
flags.
On Thursday, April 11, 2002, at 04:38 pm, Alex Fuller wrote:
I'm trying to link to zlib1.1.3 (which is supplied as part of the OS X
installation) from my Cocoa program. I've referred to the library with a
#include "zlib.h" at the top of my source file, which appears to be
picking
up /usr/include/zlib.h successfully. However as soon as I call the
compress() function, ProjectBuilder gives me the following compile error:
illegal reference to symbol: _compress defined in indirectly referenced
dynamic library /usr/lib/libz.1.1.3.dylib
Any suggestions?
Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.