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]

Source: Internet
Author: User
Tags visual studio 2010

    

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.