"_inflateEnd", referenced from "_inflateInit_"錯誤,

"_inflateEnd", referenced from "_inflateInit_"等。這時須要在工程中加入libz.dlib

"_inflateEnd", referenced from "_inflateInit_"等。這時須要在工程中加入libz.dlib 文件 html


Undefined symbols for architecture i386:
  "_compressBound", referenced from:
      +[NSDataGZipAdditions compressedDataWithBytes:length:] in NSDataGZipAdditions.o
  "_compress", referenced from:
      +[NSDataGZipAdditions compressedDataWithBytes:length:] in NSDataGZipAdditions.o
  "_inflateInit_", referenced from:
      +[NSDataGZipAdditions dataWithCompressedBytes:length:] in NSDataGZipAdditions.o
  "_inflate", referenced from:
      +[NSDataGZipAdditions dataWithCompressedBytes:length:] in NSDataGZipAdditions.o
      -[ParserForMainReturn uncompressZippedData:] in ParserForMainReturn.o
  "_inflateEnd", referenced from:
      +[NSDataGZipAdditions dataWithCompressedBytes:length:] in NSDataGZipAdditions.o
      -[ParserForMainReturn uncompressZippedData:] in ParserForMainReturn.o
  "_inflateInit2_", referenced from:
      -[ParserForMainReturn uncompressZippedData:] in ParserForMainReturn.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
spa

Undefined symbols for architecture i386:
  "_compressBound", referenced from:
      +[NSDataGZipAdditions compressedDataWithBytes:length:] in NSDataGZipAdditions.o
  "_compress", referenced from:
      +[NSDataGZipAdditions compressedDataWithBytes:length:] in NSDataGZipAdditions.o
  "_inflateInit_", referenced from:
      +[NSDataGZipAdditions dataWithCompressedBytes:length:] in NSDataGZipAdditions.o
  "_inflate", referenced from:
      +[NSDataGZipAdditions dataWithCompressedBytes:length:] in NSDataGZipAdditions.o
      -[ParserForMainReturn uncompressZippedData:] in ParserForMainReturn.o
  "_inflateEnd", referenced from:
      +[NSDataGZipAdditions dataWithCompressedBytes:length:] in NSDataGZipAdditions.o
      -[ParserForMainReturn uncompressZippedData:] in ParserForMainReturn.o
  "_inflateInit2_", referenced from:
      -[ParserForMainReturn uncompressZippedData:] in ParserForMainReturn.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)



若是總是出現上面的錯誤。那麼在工程中加入libz.dlib 文件就妥妥的了。

另一個需增長的壓縮庫爲libbz2.1.0.dylib code

相關文章
相關標籤/搜索