gustavogenovese/curl-android-ios

iOS Undefined symbols for architecture i386: "_inflate", referenced from:

Closed this issue · 2 comments

When linking the library against iOS, i get the following errors at build time.

brokenlibcurl

When running lipo on the library it definitely shows the proper archs.

Libraries master ✗ 22h6m △ ✓ ◒ ➜ lipo -info libcurl.a
Architectures in the fat file: libcurl.a are: armv7 armv7s i386 x86_64 arm64

And the header files from the repository are being included.

Turns out i needed to also link the project against zlib. I did this by adding -lz to the linker flags.