_DllMain@12 已定义

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

我尝试从 mDNSResponder-107.6.tar.gz 存档构建子项目 ExplorerPlugin 但 收到下一个链接错误:

uafxcwd.lib(dllmodul.obj):错误 LNK2005:_DllMain@12 已定义

如何解决?

I try to build subproject ExplorerPlugin from mDNSResponder-107.6.tar.gz archive but
receive next link error:

uafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined

how to solve it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

纵性 2024-10-16 11:17:35

我遇到了完全相同的问题,这解决了它:
https://stackoverflow.com/a/19930430/625227

在 DLLMain 函数所在的 .cpp 文件中输入此代码

extern "C" { int _afxForceUSRDLL; } 

I had exactly the same problem and this fixed it:
https://stackoverflow.com/a/19930430/625227

Enter this code in the .cpp file where your DLLMain function is

extern "C" { int _afxForceUSRDLL; } 
紫瑟鸿黎 2024-10-16 11:17:35

看起来你正在使用MFC。它已经有一个 DllMain 入口点,需要正确初始化 MFC。请查看此知识库文章以获取建议的解决方法。很难提供更好的答案,你没有提供链接,在我看来这是苹果代码,非常不符合 mfc 风格。

Looks like you are using MFC. It already has a DllMain entrypoint, required to initialize MFC properly. Check this KB article for recommended workarounds. Hard to otherwise provide a better answer, you didn't provide a link and it looks to me like this is Apple code, very un-mfc-ish.

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