构建失败? “无法启动程序...系统找不到指定的文件” [英] Build Failure? "Unable to start program... The system cannot find the file specificed"

查看:666
本文介绍了构建失败? “无法启动程序...系统找不到指定的文件”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello我是一个初学者试图构建一个简单的win32控制台应用程序,以努力跟踪一个YouTube教程,我试图使用VS 2010 express时遇到这个问题。



编辑:这是我跟着的YouTube视频,代码是从视频中的14:52。
/ watch?v = URNZq50X35s& list = PLFBF66E730A679479& index = 1



链接到错误img:
http://i.imgur.com/AVD06aa.png



设置img:
http://i.imgur.com/AvMgDxt.png p>

我已经google了更多的时间,然后我在乎现在承认,努力尝试和解决这个问题。我找不到这个问题的修复。
这里是img中的代码:



编辑2:由于建议只是为了交叉潜在的问题修改代码



编辑3:当重建解决方案输出从构建显示:



1> - 开始构建:项目:Learning1, Win32 ------
1> LINK:致命错误LNK1123:在转换为COFF期间失败:文件无效或损坏
========== Build:0成功,1失败,0最新,0已跳过==========



编辑4:解决方案!



很好,我终于找到了问题和解决方案。
LINK:致命错误LNK1123:在转换为COFF:文件无效或损坏期间失败



解决方案在stackoverflow ,一个可爱的网站:
错误LINK:致命错误LNK1123:在安装Visual Studio 2012发行预览之后转换为COFF时文件无效或损坏



禁用增量链接和程序将立即在VS 2010 express中运行。



感谢您尝试帮助我。非常感谢。



(我不能回答我自己的问题7个小时,因为我是新的网站。 ..

  #include< iostream> 

using namespace std;

int main()
{

for(int i = 0; i <5; i ++)

{
cout<< i<< endl;
}

cout<< 循环结束v.2< endl;

return 0;
}



我确认这段代码在代码块中运行。



任何和所有的帮助将非常感激。



(如果你想知道为什么我要使用VS 2010)。



谢谢。



问题:LINK:致命错误LNK1123:在转换为COFF时失败:文件无效或损坏



在stackoverflow的另一篇文章中找到了解决方案,一个可爱的网站: LINK:致命错误LNK1123:在安装VS2012版本预览后转换为COFF时文件无效或损坏



禁用增量链接和程序现在将在VS 2010 express中运行。


Hello I am a beginner trying to build a simple win32 console application in effort to follow a youtube tutorial and I keep running into this issue when trying to use VS 2010 express.

EDIT: Here is the youtube video that I am following along, the code is from 14:52 in the video. /watch?v=URNZq50X35s&list=PLFBF66E730A679479&index=1

link to error img: http://i.imgur.com/AVD06aa.png

settings img: http://i.imgur.com/AvMgDxt.png

I have googled for more hours then I care to admit now in an effort to try and solve this problem.. I cannot find a fix to this issue. Here is the code in the img:

EDIT 2: Revised code due to suggestions just to cross out potential issues

EDIT 3: When rebuilding solution output from build shows:

1>------ Build started: Project: Learning1, Configuration: Debug Win32 ------ 1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

EDIT 4: SOLUTION FOUND!

Alright I finally found the problem and the solution.

Problem: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Solution was found at another article on stackoverflow, a lovely site: Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview

Disabled incremental linking and programs will actually run now in VS 2010 express.

Thanks for all your attempts at helping me. Very much appreciated.

(I can't answer my own question for 7 hours because I am new to the site. What a brilliant system.. so this edit will have to do.)

<3

#include <iostream>

using namespace std;

int main()
{

 for (int i = 0; i < 5; i++)

 {
    cout << i << endl;
 }

 cout << "end of loop v.2" << endl;

 return 0;
}

I have confirmed that this code runs in Code Blocks.

Any and all help will be greatly appreciated.

(If you are wondering why I want to use VS 2010 over code blocks, I simply would prefer Vs 2010 so I can follow the tutorial more appropriately.)

Thank you.

解决方案

Alright i finally found the solution.

Problem: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Solution was found on another article at stackoverflow, a lovely site: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt after installing VS2012 release preview

Disabled incremental linking and programs will actually run now in VS 2010 express.

这篇关于构建失败? “无法启动程序...系统找不到指定的文件”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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