• 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: zlib link error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zlib link error


  • Subject: Re: zlib link error
  • From: "D. Walsh" <email@hidden>
  • Date: Wed, 19 Oct 2005 17:26:49 -0400
  • Mta-interface: amavisd-new-2.3.3 (20050822) at daleenterprise.com


On Oct 19, 2005, at 15:32 , Stephen Chu wrote:

I am having problem using zlib with 1.4u SDK. I read it up in the list archive and find that I should use "-lz" linker flags. I did that but I am getting this error:

/usr/bin/ld: Undefined symbols:
_compress
_uncompress
collect2: ld returned 1 exit status

This happens even after I change SDK back to Current Mac OS.

Are you importing/including the header file?

In your project, you may wish to add libz.dylib to the project along with the header file instead of specifying "-lz" or you could also add "-I/usr/lib/zlib.h"

Help!

--
Stephen Chu <mailto:email@hidden>

-- Dale _______________________________________________ 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: zlib link error
      • From: Stephen Chu <email@hidden>
References: 
 >zlib link error (From: Stephen Chu <email@hidden>)

  • Prev by Date: Re: RESOLVED Re: dyld: (No such file or directory, errno =2)... But the
  • Next by Date: Re: RESOLVED Re: dyld: (No such file or directory, errno =2)... But the
  • Previous by thread: zlib link error
  • Next by thread: Re: zlib link error
  • Index(es):
    • Date
    • Thread