error: dns_sd.h: No such file or directory

sashoalm picture sashoalm · Oct 25, 2013 · Viewed 20k times · Source

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?

Answer

friederbluemle picture friederbluemle · Feb 16, 2015

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

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