模块不安全的SAFESEH映像C ++ [英] module unsafe for SAFESEH image C++
问题描述
我使用Microsoft Visual Studio 2011 Professional Beta
I am using Microsoft Visual Studio 2011 Professional Beta
我试图运行OpenCV C ++文件( http://opencv.willowgarage.com/wiki/Welcome ),我已经使用cMake& Visual Studio Complier。
I am trying to run the OpenCV C++ files (http://opencv.willowgarage.com/wiki/Welcome) that I have compiled using cMake & the Visual Studio Complier.
但是当我去调试项目时,我得到了600多个错误,大部分是:
However when I go to debug the project I get 600+ errors most of them being:
错误LNK2026:对SAFESEH映像的模块不安全。
error LNK2026: module unsafe for SAFESEH image.
显然这些文件在opencv_ffmpeg项目中但我找不到他们,我看看在Microsoft帮助页面上的safelessh安全异常处理程序页面,但我找不到任何确定的答案。
Apparently these files are in the opencv_ffmpeg project but I couldn't find them, I have had a look at the safeseh Safe Exception Handlers page on the Microsoft help page but I couldn't find any definitive answers.
推荐答案
从评论:
当您链接包含由早期版本的编译器创建的代码的.obj或.lib时,会发生这种情况。这当然会是常见的,如果你下载opencv_ffmpeg二进制代替源。你可以关闭链接器选项,但是你仍然有一个CRT版本不兼容,可以byte。从源重建库。 - Hans Passant 5月15日下午13:01
感谢您的帮助,它工作 - Aaron Thompson 5月17日14:50
This happens when you link an .obj or .lib that contains code created by an earlier version of the compiler. Which of course would be common if you downloaded a binary for opencv_ffmpeg instead of the source. You can turn the linker option off but then you'll still have a CRT version incompatibility that can byte. Rebuild the library from source. – Hans Passant May 15 at 13:01
Thanks for the help, it worked – Aaron Thompson May 17 at 14:50
这篇关于模块不安全的SAFESEH映像C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!