[Solved] Error 2 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
-
wrote on 21 May 2014, 06:34 last edited by
I downloaded and installed -
Qt 5.3.0 for Windows 64-bit (VS 2013, 622 MB)
Visual Studio Add-in 1.2.3 for Qt5today and am using
Microsoft Visual Studio Ultimate 2013
Version 12.0.30501.00 Update 2In Windows 8.1 Pro 64 bit operating system
I was able to fix the first error I received (forgot what it was) by
Going toQT5 -> Qt Options -> Add
in visual studio and changing the directory to
C:\Qt\Qt5.3.0\5.3\msvc2013_64
However I now get the error
Error 2 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'as well as a handful of intelliSense errors.
This is in a new project I created using
FILE -> New Project -> QT5 Projects -> QT Application ->
and just selecting "Finish" in the QT project wizard using all the project defaults.Any suggestions? Thanks.
-
Hi and welcome to devnet,
Just an educated guess, is your project configured for x86 rather than x64 ?
-
wrote on 21 May 2014, 09:23 last edited by
BUILD -> Configuration Manager
Active solution platform (change to x64)
Platform (change to x64)
for
Configuration -> Debug
Configuration -> Release
seemed to clear this up. -
wrote on 21 May 2014, 09:26 last edited by
[quote author="SGaist" date="1400663941"]Hi and welcome to devnet,
Just an educated guess, is your project configured for x86 rather than x64 ?[/quote]
Yah sorry I think I fixed it. How do I change this to solved?
-
[quote author="bogo_sort" date="1400664400"][quote author="SGaist" date="1400663941"]Hi and welcome to devnet,
Just an educated guess, is your project configured for x86 rather than x64 ?[/quote]
Yah sorry I think I fixed it. How do I change this to solved?[/quote]
I did it for you. For the future: just edit your original post (the first one in a thread), and add "[Solved]" to the title.
-
wrote on 14 Jan 2015, 11:32 last edited by
if you are using Qt Creator
Select Build--->open Build and Run kit selector
then choose Desktop Qt 5.4.0 MSVC2013 64bit
-
wrote on 14 Jan 2015, 11:32 last edited by
if you are using Qt Creator
Select Build--->open Build and Run kit selector
then choose Desktop Qt 5.4.0 MSVC2013 64bit