Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么手动集成? #62

Open
dpc323 opened this issue Jun 12, 2018 · 1 comment
Open

怎么手动集成? #62

dpc323 opened this issue Jun 12, 2018 · 1 comment

Comments

@dpc323
Copy link

dpc323 commented Jun 12, 2018

因为我需要修改源代码,所以想手动集成,结果报错了。
Undefined symbols for architecture arm64:
"_res_9_setservers", referenced from:
_setup_dns_server in QNResolvUtil.o
"_res_9_ninit", referenced from:
+[QNResolver systemDnsServer] in QNResolver.o
_setup_dns_server in QNResolvUtil.o
"_res_9_getservers", referenced from:
+[QNResolver systemDnsServer] in QNResolver.o
"_res_9_ns_name_uncompress", referenced from:
_query_ip_v4 in QNResolver.o
"_res_9_ns_parserr", referenced from:
_query_ip in QNTxtResolver.o
_query_ip_v4 in QNResolver.o
"_res_9_nquery", referenced from:
_query_ip in QNTxtResolver.o
_query_ip_v4 in QNResolver.o
"_res_9_ns_initparse", referenced from:
_query_ip in QNTxtResolver.o
_query_ip_v4 in QNResolver.o
"_res_9_ndestroy", referenced from:
_query_ip in QNTxtResolver.o
_query_ip_v4 in QNResolver.o
+[QNResolver systemDnsServer] in QNResolver.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@dpc323
Copy link
Author

dpc323 commented Jun 12, 2018

已经解决了,添加libresolv.tbd库,即可解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant