使用 MinGW 链接 Bonjour SDK 的 dnssd.lib 给出 SEGV
我正在尝试使用 MinGW 将 Bonjour 与我的 Windows 应用程序集成。我已经下载了最新的 Bonjour SDK for Windows 2.0.4 并链接了 dnssd.lib。编译、链接一切顺利,但我得到一个奇怪的 SIGSEGV,没有堆栈跟踪。预先感谢您的任何帮助或建议。
I am trying to integrate Bonjour with my Windows application using MinGW. I have downloaded the latest Bonjour SDK for Windows 2.0.4 and linked the dnssd.lib. The compilation, linking goes fine but I get a weird SIGSEGV with no stack trace. Thanks in advance for any help or suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试静态链接?您不能混合使用 MinGW 和 MSVC 静态库,但可以动态链接。
Are you trying to link statically? You can't mix MinGW and MSVC static libraries but you can link dynamically.
使用 dll 并通过 Qt 类 QLibrary 根据需要加载它解决了该问题。
Solved the issue using the dll and loading it as required through Qt class QLibrary.