"Link: Fatal error lnk1123: failed during coff conversion: The file is invalid or corrupt"

Source: Internet
Author: User

To compile LTP, LTP cannot be compiled in mingw. Therefore, vs2010 + cmake is installed reluctantly.

Since vs abused me thousands of times during my undergraduate course, I have always been shadow...

Transfer to the subject, when cmake, it prompts"Link: Fatal error lnk1123: failed during coff conversion: The file is invalid or corrupt"

So the online search results, basically are "vs 2010, when opening the instance error", with the portal http://bbs.csdn.net/topics/390121452

The solution is also sent here:

"Error lnk1123" will occur when a Win32 console project is created after vs2010 experiences some updates, solution: Change "project", "Project property", "configuration property", "configuration tool", "input", and "output" to "no, however, if you do not create a new project, you must set it once.
When creating the vs2010 Win32 project, the error "error lnk1123" still occurred according to the above solution. After going online to check information, the solution is:
Step 1: Same as above.
Step 2: Change "project", "Project property", "configuration property", "connector", "inventory file", "embedded configuration", to "no ".
Step 3: Generally, the computer can solve the problem after the last two steps. However, if there is still a problem, click here to solve it:
Whether the computer is a 64bit operating system. If yes, continue 2.
Check that two cvtres.exe exist in the region. One is c: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ Vc \ bin \ cvtres.exe, and the other is c: \ windows \ Microsoft. NET \ framework \ v
4.0.30319 \ cvtres.exe. Right-click Properties | view the version numbers of both, delete or rename an older version, or reset the PATH variable.

Specifically, the solution is to delete the original cvtres.exe and you do not need to configure it every time ."

 

However !! We use cmake instead of vs2010, so we have to find the problem from the source.

The turning point was mentioned at http://blog.csdn.net/rryr2/article/details/8221357,

"Vs2010, vs2012, sv2008, and vs2010, both of which will appear during later version vs compilation. Use vs2008's D: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ bindirectory cvtres.exe is replaced with vs2010 Vs and compiled successfully."

 

He suggested that different versions of vs directly have different cvtres. If a project of a lower version is opened with a higher version, the question is described in the title. It is also known that LTP is compiled in vs2008, soCopy cvtres.exe in vs2008to vs2010.. Cmake is successful.

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.