_Unwind_Resume的多个定义 [英] Multiple Definitions of _Unwind_Resume
问题描述
一段时间以来,我一直在使用一小部分文件编写的文件,以便更轻松地与WinAPI交互.虽然,当我想重用它们,等待它们重新编译等操作时,不停地移动文件变得很痛苦.我最终决定只将它们放入DLL中,并完成它,但是我得到了每次尝试使用该库时,出现奇数链接错误.
For a while, I've been using a small collection of files I wrote making it easier to interface with WinAPI. Although, it's become a pain to keep moving the files around when I want to reuse them, waiting for them to recompile, etc. I finally decided to just throw them in a DLL, and be done with it, but I'm getting an odd link error every time I try to use the library.
该错误实际上与标题一样具体,几乎没有提供有关定义实际起源的信息(据我所知,考虑到该信息实际上无法从DLL中收集).有人可以请您解释到底是什么原因会导致此错误,以及提供一些可能的解决方案?
The error is really as specific as the title, providing little information about where the definition actually originates(considering, that kind of information can't really be collected from a DLL, as far as I'm aware). Could someone please explain exactly what would cause this error, as well as providing some possible fixes to the problem?
我正在使用MinGW(由SFML网站提供的相同版本4.4)以及Code :: Blocks(如果该信息有帮助的话).如果需要更多信息,我会尽力提供.
I'm using MinGW(the same version provided by the SFML site, 4.4) along with Code::Blocks, if that information helps any. If any more information is required, I'll do my best to provide it.
推荐答案
问题是名为_Unwind_Resume
的符号(函数或变量)有多个定义.
The problem is that there are multiple definitions for a symbol (function or variable) named _Unwind_Resume
.
DLL正在导出这样的名称.重建它,使其仅显示所需的符号.显然,它现在是在所有公共符号都被导出的情况下构建的.
The DLL is exporting such a name. Rebuild it so that it only exposes desired symbols. Apparently, it is now built with all public symbols being exported.
这篇关于_Unwind_Resume的多个定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!