Proper way to link to libxml and zlib
Proper way to link to libxml and zlib
- Subject: Proper way to link to libxml and zlib
- From: Tim Conkling <email@hidden>
- Date: Thu, 2 Jun 2005 14:08:57 -0400
I'm using libxml and zlib in my program. When I compile and run the
program with ZeroLink enabled, everything works fine. When I compile
with ZeroLink disabled, I get a bunch of undefined symbols at link
time for both libraries. I searched my computer for files containing
the word "libxml" in them, and came up with libxml2.2.dylib, which is
in the MacOSX10.4.0.sdk directory in /Developer/. I added this file
to my project and put in the Link Binary With Libraries build phase,
and eliminated all the libxml-related undefined symbol errors. I
couldn't, however, find a similar zlib library to link my program with.
I have a couple questions:
First, am I linking with libxml correctly? I suspect the answer is
no, since this dylib only exists in the Developer directory, and
doesn't seem to be included with Mac OS X itself.
Second, what do I need to do to make zlib work?
Thanks,
Tim
_______________________________________________
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