与 C++ 编译文件相关的视觉错误
visual error related to c++ compile file
当我尝试运行以下代码时
#include<iostream>
using namespace std;
class Rectangle
{
public:
int x,y;
Rectangle(int a,int b)
{
x=a;
y=b;
}
int area()
{
return x*y;
}
};
int main()
{
Rectangle a(3,4);
cout<<a.area()<<" "<<endl;
return 0;
}
我收到此错误
1>------ Build started: Project: project_class, 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 ==========
请帮助我澄清此错误的原因
看看这些:
http://support.microsoft.com/kb/2757355
转换为 COFF 期间失败:文件无效或损坏
错误"链接: 致命错误 LNK1123: 转换为 COFF 期间失败: 文件无效或损坏" 安装 Visual Studio 2012 发行预览版
相关文章:
- 为什么我在尝试模板时遇到视觉工作室C++错误
- C++11 中好友模板类的视觉C++错误
- 错误 C2512 视觉C++(并且不是循环依赖项)
- 是视觉C++优化器错误还是我的代码中有错误?
- 视觉错误:变量或字段'Palindrome'在 C++ 中声明为 void
- 视觉C++错误 C2451 条件字符串是非法的
- 视觉C++错误"无法将参数 1 从'句柄'转换为'句柄 &'"
- 视觉C 错误LNK2019
- Qt QQuickView视觉错误/调整大小时闪烁
- 视觉C++错误:函数必须返回一个值
- 视觉错误类 c++ 类。 不知道它是什么
- 视觉C++错误 C2065 未声明的标识符
- 视觉错误LNK2001:未解析的外部符号C++
- 与 C++ 编译文件相关的视觉错误
- 视觉C++错误 C2143:语法错误:'constant'之前缺少';'
- 将一对插入到映射的向量中时出现视觉C++错误
- 视觉错误LNK2001:未解析的外部符号(C++)
- 视觉C++错误 C2143:语法错误:'{'之前缺少';'
- 视觉错误在使用 #include "DarkGDK.h" 编译程序时出现C++
- 视觉C++错误 C3867 和 C2664