While attempting to link with QT 4.5 release, I run into this error message
fatal error C1047: The object or library file 'c:\qt\2009.02\qt\lib\qtmain.lib' was created with an older compiler than other objects; rebuild old objects and libraries
I have been using the same compiler for my current projects to compile QT 4.5 (VS 2005, though I am not sure if I compile it with VS2005 SP1 or not, but I am using SP1 now). The problem only rears its head when another library I am compiling with has GL enabled (which switched to LTCG automatically by VS2005). I only could get the build to work if I disable all optimization in all other libraries (which prevent LTCG from being enabled)
Is there a way to get QT 4.5 to work with LTCG release build process? If I have to recompile, what flags need I to set for nmake?
By the way, the project is created with QT 4.5 Visual Studio Add-in, and for the release build it has GL turned off automatically.