【问题标题】:Program error in visual studio c++ 2010 expressVisual Studio C++ 2010 Express中的程序错误
【发布时间】:2015-01-28 13:38:51
【问题描述】:

在我在visual c++ 2010 express中运行我的程序后,我可以知道如何解决这个问题吗?

程序代码

#include "stdafx.h"
#include "stdio.h"

int main(void)
{
    printf("Welcome !!!\n");
    return 0;
}

输出消息 1>----- 重建所有开始:项目:练习,配置:调试Win32 ------ 1>stdafx.cpp 1> 练习.cpp 1>LINK : 致命错误 LNK1123: 转换为 COFF 时失败: 文件无效或损坏 ==========全部重建:0成功,1失败,0跳过==========

【问题讨论】:

    标签: c++


    【解决方案1】:

    要么禁用增量链接,要么转到

    Project Properties 
       -> Configuration Properties 
           -> Linker (General) 
              -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
    

    或安装 VS2010 SP1。

    【讨论】:

    • 为什么你的整个答案写得好像是一段代码?
    • @LightnessRacesinOrbit 对不起,我下次会注意的。感谢您指出。
    猜你喜欢
    • 1970-01-01
    • 2013-08-20
    • 2012-11-04
    • 2013-09-28
    • 1970-01-01
    • 2011-03-30
    • 2011-06-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多