错误 lnk2026:模块对于 safeseh 图像不安全 [英] Error lnk2026: module unsafe for safeseh image

查看:49
本文介绍了错误 lnk2026:模块对于 safeseh 图像不安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建示例 Visual C++ 项目时遇到此错误.首先我下载了​​3个示例项目,都解决了同样的问题,打印出所有小于N的质数(你可能知道这些示例项目?).我没有任何问题地构建了纯 C 项目.但是当我尝试构建基于程序集的项目时,我遇到了这个错误.

I got this error when building a sample visual C++ project. First I downloaded 3 sample projects, all solve the same problem, print out all the prime numbers less than N (you may know these sample projects ?). I built the pure-C project without any problem. But when I tried to build the assembly-based project one, I got this error.

谢谢.

推荐答案

Try to disable SAFESEH.

来自规范:指定了/SAFESEH,但模块与安全异常处理功能不兼容.

From spec: /SAFESEH was specified, but a module was not compatible with the safe exception handling feature.

这篇关于错误 lnk2026:模块对于 safeseh 图像不安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆