Failure during conversion to COFF
-
New to Qt. I've installed Qt 5.0 and I have Visual Studio 2012. Using creator if I try to run any of the examples or something I have written I get the following error... "failure during conversion to COFF: file invalid or corrupt" I've checked the forums for others that have experienced this error message but they just seem to indicate that there was a patch for Visual Studio 2010 and nothing about 2012. Any help would be appreciated. Thanks.
-
Does your program contains an application icon similar to this "link":http://doc.qt.digia.com/4.7-snapshot/appicon.html ?
Encountered it a lot in Qt 4.8.3 when setting an application icon for my projects and I think it might still exist in Qt 5.0 (windows) since it is dependent on VS's compiler.
-
Hi, just a word of caution, but never use a other version of the compiler then what the library is made with. For now you might not encounter problems between the MSVC2012 delivered compiler of the MSVC2010 compiler. Qt is compiled with the MSVC2010, so also compile your project with this one. This voids problems with name mangling etc. Or recompile the Qt source code with your desired compiler and use your own compiled Qt library.
Greetz -
I had this issue, in my case the reason was installing Visual Studio 2012 on a machine which already had Visual Studion 2010. I also could not run C++ projects in both Visual Studios (Same error).
There are three solutions:
1- Temporary solution : Use Release mod instead of Debug, Application runs, but no debugging is available.
2- Download and install Qt MinGW instead of VS version (Twice in size)
3- (Recommended) Install/Reinstall SP1 of Visual Studio 2010 (as Corny mentioned). -
Since I only use the WinSDK and did not want to request a Visual studio license I had to jump through some hoops to get this working: https://qt-project.org/wiki/Category:Tools::msvc
-
I experienced the following problem:
Qt 5.1.1 with MSVC 2010 was downloaded and installed. After this, ms visual studio 2010 express was downloaded and installed. I created new project and clicked "compile" but got error message "failure during conversion to COFF: file invalid or corrupt".
Then SP1 of Visual Studio 2010 was downloaded and installed. Now everything works well, no error message anymore! Thank you very much for help!!