[Qt-interest] Windows linker error VS2008

Michael Bieber qtlist at traits.de
Tue Mar 24 19:43:52 CET 2009


1>Linking...
1>fatal error C1047: The object or library file 'c:\Qt\lib\qtmain.lib' 
was created with an older compiler than other objects; rebuild old 
objects and libraries
1>LINK : fatal error LNK1257: code generation failed

Happens with one of my applications using the recent Qt 4.5.0 
(commercial) for a release mode compilation. Never for Qt versions < 
4.5.0 and even not for the applications debug version variant with 4.5.0.
What the hell does it mean? Do I have to recompile Qt now? I did it most 
of the time in the past more or less painless. Now by using the 
precompiled installer, these kind of teething problems are a bit 
disappointing.
BTW, the mix of files created at 14/03/09 and 26/02/09 (wildly varying 
between debug end release libraries - the nagging qtmain.lib one of the 
old ones) in my installed QTDIR/lib directory looks suspicious to me. 
The February files a bit old for my idea of a brand new Qt version.

Micha



More information about the Qt-interest-old mailing list