Archived Forum Post

Index of archived forum posts

Question:

iOS link errors: _res_9_query Undefined symbols?

Dec 17 '12 at 09:57

Any idea why I get these link errors with both the iOS 4.3 and 6.0 versions of the library?

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)


Answer

Add "-lresolv" to the link options.