Monday, 12 August 2019

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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...