[Qt-interest] Qt 4.5.3 and target architecture mismatch
Joshua Senecal
jgsenecal at yahoo.com
Tue Feb 2 22:23:04 CET 2010
Hi All,
Using the Nokia-provided binary installer (.exe) I recently installed Qt
on a new machine for development, and I can't get any code using Qt to
compile. Not even a simple "Hello, World"-type app.
The Microsoft compiler (I'm using Visual Studio Standard 2008) is giving
me this error:
QtCored4.lib(QtCored4.dll) : fatal error LNK1112: module machine type
'X86' conflicts with target machine type 'x64'
I've done the usual search, on Microsoft's sites and elsewhere, and my
understanding is the message is telling me that I've essentially got an
architecture mispatch: the library was compiled for one architecture,
the code for another.
The problem is the operating system *is* 32-bit (Server 2008), so there
shouldn't be anything targeting x64. The configuration settings show the
platform as Win32. The property at Properties->linker->advanced->Target
Machine is "Not Set" but if I set it to x86, I get the following error:
.\Debug\main.obj : fatal error LNK1112: module machine type 'x64'
conflicts with target machine type 'X86'.
Is this a configuration issue with Qt, or with the Microsoft
compiler/project settings? Can anyone offer any pointers on how to fix
it?
Thanks!
-Josh Senecal
More information about the Qt-interest-old
mailing list