Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I attempted to compile an MFC app in VS two days ago and received the following error message?
LINK:Fatal error LNK 1123: Failure during conversion to COFF: File invalid or corrupt.

The strange thing is thatI have been compiling ( or debugging) this code every day for the past eight months I have been working on the project. This is not the first time I will attempt to compile it.

T o resolve the problem I uninstalled vs ultimate edition and installed Vs professional edition, but the error kept showing up.I repaired Vs professional edition, same thing.I uninstalled vs professional edition same thing.

The strangest thing is that even when I created test console , Win32 c++ projects and new mfc projects.The same thing.The same error message irrespective of the project.

Please how do I resolve this?
Posted
Comments
Sergey Alexandrovich Kryukov 29-Aug-14 14:07pm    
Not enough information. How about new projects created from scratch? If they don't work, you don't have functional environment. Did you try to reinstall Visual Studio?
—SA
Gbenbam 29-Aug-14 14:56pm    
I created several new projects from the scratch.Some mfc,some console,some Win32.I uninstalled visual studio and reinstalled it.

1 solution

Depends on the version of VS installed: http://support.microsoft.com/kb/2757355[^]
If that doesn't help, try disabling incremental linking:
"Project Properties...Configuration Properties...Linker (General)...Enable Incremental Linking...No (/INCREMENTAL:NO)"
 
Share this answer
 
Comments
Gbenbam 29-Aug-14 15:03pm    
Oh, yes it all started after I installed dotnet framework 4.5 on my system that has vs 2010 installed.How do I upgrade my vs 2010 to service pack 1?
OriginalGriff 29-Aug-14 15:21pm    
It should be automatic via Microsoft Update - so start there and see what it says.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900