与 C++ 编译文件相关的错误。

11 浏览
0 Comments

与 C++ 编译文件相关的错误。

这个问题已经有了答案

安装Visual Studio 2012 Release Preview后出现“LINK:致命错误LNK1123:在转换为COFF时失败:文件无效或损坏”错误

当我尝试运行以下代码时

#include
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 ==========

请帮助我理清这个错误的原因

admin 更改状态以发布 2023年5月20日
0