• 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: Problem linking to zlib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Problem linking to zlib
      • From: David Vierra <email@hidden>
References: 
 >Problem linking to zlib (From: Alex Fuller <email@hidden>)

  • Prev by Date: NSThread/NSMutableArray oddity
  • Next by Date: Re: AppleScipt & Cocoa, argh! I can't get it to work
  • Previous by thread: Problem linking to zlib
  • Next by thread: Re: Problem linking to zlib
  • Index(es):
    • Date
    • Thread