Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Creator error: LNK1123: failure during conversion to COFF: file invalid or corrupt

Tags:

c++

qt

qt-creator

When i tried to debug project on QT 5.0 Creator (MSVC2010(x86)compiler 10.0) i have this error:

LNK1123: failure during conversion to COFF: file invalid or corrupt

I googled and i saw some solutions but only for Visual Studio 2012, i need solution of this problem for QT Creator.

Thank you.

Before this problem i had problem with MSVC(x86)compiler 11.0, and i was installed MSVC2010(x86)compiler 10.0 and now i have this error.

like image 294
user1814358 Avatar asked Mar 05 '13 17:03

user1814358


3 Answers

Set QMAKE_LFLAGS += /INCREMENTAL:NO in the file .pro

like image 157
user2849240 Avatar answered Sep 28 '22 06:09

user2849240


In addition to QMAKE_LFLAGS += /INCREMENTAL:NO, I "cleaned" and also removed the output directory to force a fresh recompile. Then the tutorial application built.

like image 29
Cathy Avatar answered Sep 28 '22 06:09

Cathy


I had the same problem, but it was solved by marking in Build -> "Open build and run kit selector" the MSVC2012 64bit version, instead of the 32 bit. Hope it helps!

like image 31
gumlym Avatar answered Sep 28 '22 04:09

gumlym