Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with gzipInflate/gzipDeflate

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...

like image 902
YoshK Avatar asked Apr 08 '11 09:04

YoshK


People also ask

What does gzip DEFLATE mean?

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.

Is gzip the same as DEFLATE?

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.

How do I remove gzip 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.

What is DEFLATE in HTTP?

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.


1 Answers

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.

like image 88
deanWombourne Avatar answered Sep 29 '22 21:09

deanWombourne