Solve Xcode compilation link and xcode compilation Link

Source: Internet
Author: User

Solve Xcode compilation link and xcode compilation Link

Recently, I have been sorting out the dynamic library. Because there are references to third-party static libraries and files in the project, the following problems occur during the compilation of dynamic libraries. The following is a general error message. I marked the same type of error in the image with a border of the same color.

Error description:

1. blue border

If the following error message is displayed, it is related to compression or decompression.

"_ Compress", referenced from:

"_ Uncompress", referenced from:

"_ Compress2", referenced from:

"_ InflateReset", referenced from:

"_ InflateInit _", referenced from:

"_ InflateEnd", referenced from:

"_ InflateInit2 _", referenced from:

Solution: Build Settings --> Other Linker Flags add-lz

2. Red border

"Std: :__ 1: basic_string ....."

Solution: Build Phases --> Link Binary With Libraries to add the dependent library libstdc ++. tbd

3. Green Border

"_ Utf8_nextCharSafeBody", referenced from:

Solution: Build Phases --> Link Binary With Libraries to add the dependent library libicucore. tbd

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.