Message: 11
Date: Thu, 9 Feb 2006 17:12:47 +0800
From: David Chan <email@hidden>
Subject: Using Zlib for i386 code
To: Cocoa Cocoa-Dev <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
Hi all,
Sometimes ago I emailed asking about decompressing file and I was told
to use zlib. I have used it successfully so far for my project. But
there is problem when I try to compile my project for intel-based
machine. fyi, I am working on powerpc at the moment, using xcode 2.2,
and the project itself is mainly using objective-c language. I need to
compile this project to be universal-binary-enabled as the clients
machine require so.
When I set the architecture to both intel and ppc, I stumble into
errors where zlib's functions such as inflate, inflateEnd, etc.. get
Undefined Symbol error message.
So the command line such as:
int err=inflateInit_(&m_ZRec, zlib_version, sizeof (m_ZRec));
which would cause no error when compiling for ppc, is know becoming an
error. This command line is written in an objective c class that
already include zlib.h. I wonder what could the problem be. Thanks in
advance for the pointers on this problem.
Regards
David
------------------------------