排除自定义C ++项目的清单 [英] Exclude manifest for custom C++ project

查看:57
本文介绍了排除自定义C ++项目的清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在开发基于IronPythonIntegration的自定义C ++项目(用于gcc编译器).有什么方法可以消除链接阶段的异常' System.BadImageFormatException' ?

似乎与清单签名等有关.

mscorlib.dll中发生了类型为'System.BadImageFormatException'的第一次机会异常

Hello, I'm developing custom C++ project (for gcc compiler) which is based on IronPythonIntegration. Is there any way to get rid of exception 'System.BadImageFormatException' during linking stage?

Seems like related to manifest signing etc.

A first chance exception of type 'System.BadImageFormatException' occurred in mscorlib.dll

其他信息:无法加载文件或程序集'c:\ sources \ mathlib \ Debug \ mathlib.a'或其依赖项之一.该模块应该包含一个程序集清单.

它带有以下例外:

Microsoft.Build.Tasks.dll中发生了类型为'System.BadImageFormatException'的第一次机会异常

Additional information: Could not load file or assembly 'c:\sources\mathlib\Debug\mathlib.a' or one of its dependencies. The module was expected to contain an assembly manifest.

It's accompanied with this exception:

A first chance exception of type 'System.BadImageFormatException' occurred in Microsoft.Build.Tasks.dll

其他信息:文件已损坏. (来自HRESULT的异常:0x8013110E)

Additional information: File is corrupt. (Exception from HRESULT: 0x8013110E)

通过Main Project中的参考"引用该文件(mathlib.a),然后使用以下链接:
ReferencedLibraries = " @(ReferencePath) "

That file (mathlib.a) is referenced through 'References' in Main Project and then is linked using:
ReferencedLibraries="@(ReferencePath)"

在gcc.targets文件中.

In gcc.targets file.

推荐答案

Hello Konst, 感谢您的发帖!我建议将您的问题发布到位于以下位置的Unix服务之一中:
祝您度过愉快的一天!


这篇关于排除自定义C ++项目的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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