I\'ve been trying to properly add the open source dns_sd.h library provided by Apple. I am writing a program that uses the BonjourRegistrar class as demonstrated here: link
Try adding
DEFINES += _WIN32
to your project file.