【发布时间】:2013-01-29 01:40:25
【问题描述】:
每次我尝试构建和调试简单的 Hello World 代码时,都会收到一条错误消息:
1>------ Build started: Project: helloworld, Configuration: Debug Win32 ------
1> test.cpp
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 ==========
我正在使用这个代码:
#include <iostream>
using namespace std;
void main() {
cout << "Hello, World!" << endl;
}
而且我认为每当我使用Main() 时,他们都会告诉我不要使用它或其他什么。救命!!!
【问题讨论】:
-
您是否安装了任何其他版本的 Visual Studio?您是否尝试过修复您的 VC++ 2010 Express 安装?
标签: c++ visual-studio compiler-construction express