Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using zlib for i386 (or Universal) builds on PPC clients



On Feb 12, 2006, at 10:05 PM, David Chan wrote:

Oh I just found out now that this undefined symbol thing has nothing to do
with the universal binary code, but it occurs whenever i turn off the
zerolink. How can I properly link to zlib.h actually? Thanks a lot..

You can't; zlib.h is just a header file that declares the interface to a library. You need to link against the library itself. You can do this by adding /usr/lib/libz.dylib to your target, or by adding "- lz" to the "Other Linker Flags" build setting in your target's configurations.


  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Using zlib for i386 (or Universal) builds on PPC clients (From: Kirk Kerekes <email@hidden>)
 >Re: Using zlib for i386 (or Universal) builds on PPC clients (From: j o a r <email@hidden>)
 >Re: Using zlib for i386 (or Universal) builds on PPC clients (From: David Chan <email@hidden>)
 >Re: Using zlib for i386 (or Universal) builds on PPC clients (From: David Chan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.