compiling bonjour on mingw from 2.0.2 source tarball

David Byron dbyron at dbyron.com
Fri Jun 29 13:37:25 EDT 2007


On Thursday, June 28, 2007 @ 4:25p, I wrote:

> On Thursday, June 28, 2007 @ 2:17p, I wrote:
> 
> I went to:
> 
> http://developer.apple.com/networking/bonjour/download/
> 
> and grabbed the Bonjour SDK, installed it, and got past
> the compiler error.  Unforunately now I'm running into a
> linker error that doesn't make sense

It makes sense now.  The dnssd.lib in the Bonjour SDK is a native MSVC
library.  I converted it following the instructions here:

http://www.mingw.org/mingwfaq.shtml#faq-msvcdll

and the reimp tool here:

http://mywebpage.netscape.com/yongweiwu/reimp_new.zip

reimp dnssd.lib

>From there, the bonjour protocol DLL links fine with mingw.

Hopefully this will help someone down the road.

-DB





More information about the Devel mailing list