I have iOS6 project where I successfully use Chilkat libraries. I have added address book library called RHAddressBook to project (https://github.com/heardrwt/RHAddressBook) which seems very clean and high quality library.
The problem is that for it to be able to work, it needs "Other Linker Flags" in Build Settings set to "-all_load -ObjC". When I do that, Chilkat starts to give this linker error:
Undefined symbols for architecture armv7: "_res_9_query", referenced from: ChilkatResolve::mxLookup(char const, ScoredStrings&, LogBase&, bool) in libchilkatIos.a(ChilkatResolve.o) ChilkatResolve::dkimLookup(char const, StringBuffer&, LogBase&, bool) in libchilkatIos.a(ChilkatResolve.o) ChilkatResolve::bestMxLookup(char const*, StringBuffer&, LogBase&, bool) in libchilkatIos.a(ChilkatResolve.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas how to get around this?
asked Jun 19 '13 at 16:39
I got the same error. It has nothing to do with the linker flag "-ObjC". You have to include one or two additional linker flags as mentioned here: http://www.chilkatsoft.com/chilkatIos.asp Add "-lresolv" and "-lpthread" to your "Other Linker Flags" and your error will be gone.
answered Jun 20 '13 at 03:21