Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

failure during conversion to COFF

davidgraham
Beginner
1,536 Views

I am getting a "fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt"

Can you suggest how I can proceed.

Thanks 

0 Kudos
9 Replies
Steven_L_Intel1
Employee
1,536 Views

The message is pretty much self-explanatory. Can you identify which file it is complaining about? Is it one you can recreate? I've seen this years ago when a user tried to link in an old 16-bit library, or one created by an incompatible compiler.

0 Kudos
davidgraham
Beginner
1,536 Views

The file just says LINK - so it is not one file, it is caused during the LINK.

I have compiled the program many times before without any problem.

Last week a problem was found on my computer that it wasn't installing windows updates - this has been fixed and several windows updates have now been installed. I wonder if this is causing the problem.

 

0 Kudos
Steven_L_Intel1
Employee
1,536 Views

Ah, yes indeed! Are you running VS2010 without its SP1? If so, install VS2010 SP1.

0 Kudos
davidgraham
Beginner
1,536 Views

I'm running Visual Studio 2010

Version 10.0.40219.1 SP1Rel

 

0 Kudos
John_Campbell
New Contributor II
1,536 Views

12 months ago, my computer stopped installing windows updates : After lots of re-installing the O/S, I ran chkdsk and found a disk error ! It could be worth a check.

John

0 Kudos
davidgraham
Beginner
1,536 Views

Thanks John.

I ran chkdsk but still get the same problem. 

0 Kudos
davidgraham
Beginner
1,536 Views

I have found this post: 

https://software.intel.com/en-us/forums/topic/391305

It suggests:

Just overwrite $VCDIR/bin/amd64/cvtres.exe in VS2010 dir with C:/Windows/Microsoft.NET/Framework64/v4.0.30319/cvtres.exe and overwrite $VCDIR/bin/cvtres.exe in VS2010 dir with C:/Windows/Microsoft.NET/Framework/v4.0.30319/cvtres.exe.

Do you think this is the solution? I will give it a try.

 

0 Kudos
Steven_L_Intel1
Employee
1,536 Views

It might help. cvtres.exe is the culprit. But this is supposed to be fixed by VS2010SP1.

0 Kudos
davidgraham
Beginner
1,536 Views

Copying those files fixed the problem - thanks.

0 Kudos
Reply