Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:49:23+00:00 2026-06-17T05:49:23+00:00

After I have installed VS2012 my Qt project does not compiler anymore (have VS2010

  • 0

After I have installed VS2012 my Qt project does not compiler anymore (have VS2010 and VS2012 on my computer). Message: LNK1123: failure during conversion to COFF: file invalid or corrupt . It was fine before with VS2010 only.

For the VS2012 environment it is recommended to (see SO here ):

  1. Compile with Enable Incremental Linking NO
  2. Uninstall .net 4.5

Since I am not using Qt in combination with VS2012 (so no plugIn), I cannot setup the project as mentioned. Nor can I uninstall .net 4.5 (needed for another project).

Is there any chance to solve the issue? Some related questions I have

  1. Would it be a solution to compile against VS2012 C++ compiler? Here it says I’d need an own compilation of Qt 5 for this – I would like to avoid such a hassle
  2. Do I need to update Qt?
  3. Or is there a way to simply set Incremental Linking to off as in a VS project? Where in the build settings (screenshot below) would I need to set it?

Win 7, x86
QtCreator 2.5.2
Qt 4.8.1
VS2012 Ultimate with Update 1, VS2010 still installed

Project compile settings

— Edit —

I crosschecked, the paths are still to VS2010 and there is no .net 4.5 path included.

Paths

— Edit 2 — as of HP’s comment

At least I have tried with my Anti Virus Software off. Same issue.
Furthermore I have checked some other smaller Qt projects (I am a sporadic Qt coder, so I do not have plenty of experience in that field). They do compile. Also all my sub projects in the affected Qt project do compile, only the last part (GUI, using all of the sub projects) fails with the above error.

— One step further —

In my .pro file I am using the following lines to get a DEFINE with the hg version, using this for ages.

VERSION = $$system(P:/Tools/TortoiseHg/hg parents --template '{latesttag}+{latesttagdistance}')
--- $$system line seems to be the line causing the COFF issue, WHY???
DEFINES += VERSION=\\\"$$VERSION\\\"

Taking this out, I was able to recompile without the COFF error. But the application crashed due to some mixed 4.8.0 / 4.8.1 libs. Then I went through all sub projects and found duplicated build configurations. Sometimes I had the same entries twice, sometimes missing. Corrected them, app runs now (still without the version tag).

Build configs

Checked the hg comment on CMD, seems to be OK.

>P:/Tools/TortoiseHg/hg parents --template '{latesttag}+{latesttagdistance}'
'0.8.902+1'

So why is this leading to the COFF error, and why the messed configurations?. Guess I am getting too old for this crap.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:49:25+00:00Added an answer on June 17, 2026 at 5:49 am

    All credits to ba__friend for the hint. The reason is the wrong cvtres.exe as described here.Disable the old one and all is fine (at least in my particular case).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I formatted my computer and I installed VS2012 release candidate first, then VS2010 Ultimate,
I have installed Windows XP after using nlite to remove certain unneeded components. I
I have installed openjdk+tomcat7 on ubuntu EC2 instance. After do some test http and
I have installed a sample database, specifically Northwind from http://msdn.microsoft.com/en-us/library/8b6y4c7s.aspx . After installing the
I have just installed the ACL and Content Access module. Imedietly after enabling them
I have a server where I installed SQL Server 2008 and after I applied
I have an installer that prompts users to restart their computer after an install.
I have a VS2010 Setup project for a C# Winforms solution. Deployment of updates
I have various Nuget packages installed to my solution. Some in my domain project
I have SQL Server 2008 and VS2008 installed on my computer and I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.