致命错误 LNK1158:无法运行“mt.exe"

fatal error LNK1158: cannot run #39;mt.exe#39;(致命错误 LNK1158:无法运行“mt.exe)

本文介绍了致命错误 LNK1158:无法运行“mt.exe"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道问题 致命错误在编译 VS 2012 C++ 项目时无法运行mt.exe",但我对那里的答案不满意.我将我的 Visual Studio 项目从 VS2010 转换为 VS2012.但是当我编译我的解决方案时,我收到致命错误 LNK1158:无法运行'mt.exe'"错误.正如提到的链接中所建议的那样,在链接器中将生成清单"设置为否"正在工作,但不适用于我.我需要生成清单.我在谷歌搜索,但没有找到其他适用的答案.请提供任何帮助,链接以解决此问题.

I aware of question Fatal error cannot run 'mt.exe' at compiling VS 2012 C++ project but I am not satisfied with answer out there. I converted my visual studio project from VS2010 to VS2012. But when i compiled my solution, I received "fatal error LNK1158: cannot run 'mt.exe'" error. As suggested in mentioned link "Set "Generate manifest" as No in Linker" is working but not applicable for me. I need to generate manifest. I search out in google but no other applicable answer found. Please provide any help, link to come out of this issue.

以下链接已经尝试过::

Following links are already tried::

  1. 错误生成 'mt.exe'李>
  2. 连接被拒绝

推荐答案

以下可能会有所帮助:

很像 fxc.exe 的错误,将 mt.exe 复制到您找到 fxc.exe 的同一个 VS 目录安装文件中,这意味着这些 exe 不需要外部链接,并且可以节省一些编译时间您使用的是相同的 vs install,适用于所有项目.

Much like errors with fxc.exe, copy mt.exe into the same VS directory install files in which you find fxc.exe, this means there's no external linkage required for these exe's and saves a bit of compile time and as long you're using the same vs install, will work for all projects.

希望对你有用.

这个问题的答案包含一个例子:Visual Studio 由于 rc.exe 无法构建

The answer to this question contains an example: Visual Studio can't build due to rc.exe

这篇关于致命错误 LNK1158:无法运行“mt.exe"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:致命错误 LNK1158:无法运行“mt.exe"

基础教程推荐