This two-day installation of Visual Studio encountered a problem with the same problem with both your own computer and the company's computer. Both computers are new systems, which is not a problem at all. But a problem, for me this small white, still spent a lot of energy have no effect. Today asked the company a C + + colleague, he said he also encountered such a problem, 100 degrees to solve for me. I was a waste of time before, I use the search engine method is not right. I am a search error message "Unable to start" D\projects\hello\debug\hello.exe "system cannot find the specified file". And he was searching for "Link:fatal error LNK1123: Failed during transition to COFF: invalid or corrupt file". All right! After the attention, here is the workaround.
Here's how to fix it:
Delete ... \microsoft Visual Studio 2010\vc\bin the cvtres.exe below. He repeats.
Reason:
Failed during conversion to COFF: invalid or corrupt file
The input file must have a common Object file format (COFF). If the input file is not COFF, the linker will automatically attempt to convert the 32-bit OMF object to COFF, or run CVTRES. EXE to convert the resource file. This message indicates that the linker could not convert the file.
Baidu:
The coff– Universal Object File format (Common object, format) is a popular object file form (note: This does not say it is a "target" file, it is intended to be different from the compiler-generated target file (*.o/*.obj), Because this format is not only used for target files, library files, executables are often the same format. You may often use VC it? The resulting target file (*.obj) is this format. Other compilers, such as GCC (GNU Compiler Collection), ICL (Intel C + + Compiler), and VECTORC, also use the target files in this format. More than C + +, many other languages also use object files in this format.
There is a vs error link in http://msdn.microsoft.com/zh-cn/library/91621w01.aspx
Original link: http://my.oschina.net/u/231848/blog/278049
Unable to start the "D\projects\hello\debug\hello.exe" system could not find the specified file. [Link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file]