Monday, 25 July 2016

visual c++ - error related to c++ compile file




when i am trying to run following code



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

return 0;
}


i am getting this error




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


please helped me to clarify reason of this error


Answer



Have a look at these:



http://support.microsoft.com/kb/2757355




Failure during conversion to COFF: file invalid or corrupt



Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...