获取错误LNK2026:模块对SAFESEH映像不安全 [英] Getting error LNK2026: module unsafe for SAFESEH image

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

问题描述





我正在尝试使用visual studio 2013中的nmake构建开源软件包curl并使用此编译器:


 

C:\Program Files(x86)\ Microsoft Visual Studio 12.0\VC\\bin\amd64_x86 \ cl.exe

我也传递/ SAFESEH作为链接器选项。但是,构建失败并显示以下消息:

 zlib_a.lib(inffas32.obj):错误LNK2026:模块对SAFESEH映像不安全。

然后是

 

libcurl.dll:致命错误LNK1281:无法生成SAFESEH图像。

请提示如何解决此问题

谢谢,郎Mamta

 



解决方案

嗨Mamta,


< span style ="color:#666666; font-family:'Calibri',sans-serif; font-size:11pt">欢迎来到MSDN论坛。


请参阅您的说明,您的问题更多地涉及到开发问题C ++。由于我们的论坛将讨论Visual Studio WPF / SL Designer,
Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统以及Visual Studio编辑器,我将帮助您将其移至此论坛:

Visual
Studio Languages
 > 
Visual C ++
  如需专门的信息,您将从那里获得更专业的支持,
感谢您的理解。




祝你好运,


萨拉


Hi,

I am trying to build open source package curl using nmake in visual studio 2013 and it uses this compiler:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\\bin\amd64_x86\cl.exe

Also I am passing /SAFESEH as a linker option. However, the build fails with this message:

zlib_a.lib(inffas32.obj) : error LNK2026: module unsafe for SAFESEH image.

and then

libcurl.dll : fatal error LNK1281: Unable to generate SAFESEH image.

Please suggest how to resolve this issue

Thanks,
Mamta


解决方案

Hi Mamta,

Welcome to the MSDN forum.

Refer to your description, your issue is more relates to the development issue of C++. Since our forum is to discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor, I will help you move it to this forum: Visual Studio Languages  >  Visual C++  for dedicated information, you will get a more professional support from there, thank you for your understanding.

Best regards,

Sara


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

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