I develop an Iphone application on Xcode 4.0. I have to format an HTML file and put it into a Txt view. I'm trying to use TBXML , but i have 6 errors when I debug:
Undefined symbols for architecture i386:
"_deflateInit2_", referenced from:
-[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o
"_deflate", referenced from:
-[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o
"_deflateEnd", referenced from:
-[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o
"_inflateInit2_", referenced from:
-[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o
"_inflate", referenced from:
-[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o
"_inflateEnd", referenced from:
-[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Something with gZip library i guess... If somebody know an issue to fix that or an other good/complete XMLParse library, thanks to answer me :D
PS: If you had some difficults to read, i'm sorry for my english...
gzip: It is a compression format using the Lempel-Ziv coding (LZ77), with a 32-bit CRC. compress: It is a compression format using the Lempel-Ziv-Welch (LZW) algorithm. deflate: It is a compression format using the zlib structure, with the deflate compression algorithm.
There shouldn't be any difference in gzip & deflate for decompression. Gzip is just deflate with a few dozen byte header wrapped around it including a checksum. The checksum is the reason for the slower compression.
To disable gzip compression, open the corresponding file in a text editor and change gzip on to gzip off . Save the changes and close the file.
The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.
This type of error means that you haven't included a library or framework.
A quick Google of deflateInit2 tells me it's the libz framework.
If you add libz.dylib to your list of frameworks it should compile.
Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With