使用 MinGW 链接 Bonjour SDK 的 dnssd.lib 给出 SEGV

发布于 2024-10-09 11:17:29 字数 154 浏览 0 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

如果没有 2024-10-16 11:17:29

您是否尝试静态链接?您不能混合使用 MinGW 和 MSVC 静态库,但可以动态链接。

Are you trying to link statically? You can't mix MinGW and MSVC static libraries but you can link dynamically.

叫思念不要吵 2024-10-16 11:17:29

使用 dll 并通过 Qt 类 QLibrary 根据需要加载它解决了该问题。

Solved the issue using the dll and loading it as required through Qt class QLibrary.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文