我已经用MinGW安装了Codeblock 13.12,并尝试运行一个OpenCV应用程序。我编译它时没有任何问题,但是当我试图运行它时,它会引发以下错误:
The procedure entry point _gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll我检查了具有类似问题的堆栈溢出问题,每个人都指向将MinGW dll文件复制到应用程序文件夹。我这样做了,然后我犯了一个错误:
This application has failed to start because libgcc_s_dw2-1.dll was not found. Reinstalling the application may fix this problem.所以我也复制了那个dll。然后我犯了以下错误:
This application has failed to start because libgcc_s_sjij-1.dll was not found. Reinstalling the application may fix this problem.我也复制了这个dll,然后再次出现了关于缺少__gxx_personality_v0入口点的第一个错误。
发布于 2014-07-02 11:36:02
这是ABI的不兼容。您正在链接用两个不同的工具链构建的代码(一个使用dw2异常处理,另一个使用sjlj)。
要么用同一个工具链重新构建所有东西,要么为自己找到一个匹配的工具链:
https://stackoverflow.com/questions/24529976
复制相似问题