C++ MV C和x2B上的第一个节目+;2010年快车-生成错误“;系统找不到指定的文件";

C++ MV C和x2B上的第一个节目+;2010年快车-生成错误“;系统找不到指定的文件";,c++,c,visual-studio-2010,C++,C,Visual Studio 2010,像这里的许多其他人一样,我正在尝试自学如何编程,并且一直在使用麻省理工学院的开源课程来尝试构建“你好,世界!”节目 我已经按照说明做了,我相信我做的一切都是正确的,但是当我去调试程序时,它给了我可怕的“系统找不到指定的文件”错误 免责声明**我在这个网站上搜索了一些答案,因为我看到很多新程序员都有这个问题,但是我没有能够按照我看到的任何解决方案来解决这个问题。出于这个原因,我决定在这里发布-但我很抱歉,如果这已经得到了答复之前-我确实在努力寻找张贴之前 我会发布我的程序的屏幕截图,但我需要1

像这里的许多其他人一样,我正在尝试自学如何编程,并且一直在使用麻省理工学院的开源课程来尝试构建“你好,世界!”节目

我已经按照说明做了,我相信我做的一切都是正确的,但是当我去调试程序时,它给了我可怕的“系统找不到指定的文件”错误


免责声明**我在这个网站上搜索了一些答案,因为我看到很多新程序员都有这个问题,但是我没有能够按照我看到的任何解决方案来解决这个问题。出于这个原因,我决定在这里发布-但我很抱歉,如果这已经得到了答复之前-我确实在努力寻找张贴之前


我会发布我的程序的屏幕截图,但我需要10个信誉点:( 我会尽我所能提供所有信息

我使用微软Visual C++ 2010 Express。< /P> 我制作了一个新的project/Win32控制台应用程序 位置:c:\users\ryan\documents\visual studio 2010\Projects\ryan

解决方案资源管理器如下所示:

Solution 'Ryan' (1 project)
  >Ryan
    >External Dependencies
        crtdefs.h
        sal.h
        sourceannotations.h
        swprintf.inl
        vadefs.h
    >Header Files
        stdio.h
     >Resource Files 
     (Blank)
     >Source Files
        Hello World.cpp
#include <stdio.h>
int main(void)
{
    puts ("hello, Ryan");

    return 0;
}
1>------ Build started: Project: Ryan, Configuration: Debug Win32 ------
1>  Skipping... (no relevant changes detected)
1>  Hello World.cpp
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
1>------ Build started: Project: Ryan, 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 ==========
代码如下:

Solution 'Ryan' (1 project)
  >Ryan
    >External Dependencies
        crtdefs.h
        sal.h
        sourceannotations.h
        swprintf.inl
        vadefs.h
    >Header Files
        stdio.h
     >Resource Files 
     (Blank)
     >Source Files
        Hello World.cpp
#include <stdio.h>
int main(void)
{
    puts ("hello, Ryan");

    return 0;
}
1>------ Build started: Project: Ryan, Configuration: Debug Win32 ------
1>  Skipping... (no relevant changes detected)
1>  Hello World.cpp
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
1>------ Build started: Project: Ryan, 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 ==========
但是,当我去调试项目时,我得到以下错误

Unable to start program 'C:\Users\Ryan\Documents\Visual Studio 
2010\Projects\Ryan\Debug\Ryan.exe'.

The system cannot find the file specified.
构建输出现在如下所示:

Solution 'Ryan' (1 project)
  >Ryan
    >External Dependencies
        crtdefs.h
        sal.h
        sourceannotations.h
        swprintf.inl
        vadefs.h
    >Header Files
        stdio.h
     >Resource Files 
     (Blank)
     >Source Files
        Hello World.cpp
#include <stdio.h>
int main(void)
{
    puts ("hello, Ryan");

    return 0;
}
1>------ Build started: Project: Ryan, Configuration: Debug Win32 ------
1>  Skipping... (no relevant changes detected)
1>  Hello World.cpp
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
1>------ Build started: Project: Ryan, 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 ==========
几个小时以来,我一直在想如何使这项工作顺利进行,但很明显,我没有做什么……我有一种不好的感觉,这是显而易见的——但谁知道呢


如果有人能帮我-我真的很感激。我正在努力学习如何为我自己的利益编码-没有课程或工作要求,但当我无法让第一个“虚拟”程序工作时,它令人沮丧(

)你是否真的编译了<代码>调试< /C++ >配置?确保VisualStudio被更新到最新的SP:从每个文件名中删除空间,更新生成信息以显示新的名称。(在这种情况下,.CPP将显示C++,即使代码看起来像C)。考虑一下解决方案,或者尝试在微软页面上找到的解决方案: