error: dns_sd.h: No such file or directory

为君一笑 提交于 2019-12-04 09:17:55

问题


I'm trying to build a demo project using Bonjour, following this tutorial, but i'm getting this error:

error: dns_sd.h: No such file or directory

It happens on this line:

#include <dns_sd.h>

Where do I get that header file?


回答1:


I just had this error on Ubuntu while trying to compile a project. This helped:

sudo apt-get install libavahi-compat-libdnssd-dev



回答2:


You can find the mDNSResponder daemon code here: http://www.opensource.apple.com/source/mDNSResponder/

You can download a tar file here: http://www.opensource.apple.com/tarballs/mDNSResponder/




回答3:


You can use Avahi configured with mdnsresponder-compat



来源:https://stackoverflow.com/questions/19585117/error-dns-sd-h-no-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!