[Solved] Error 2 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'



  • I downloaded and installed -

    Qt 5.3.0 for Windows 64-bit (VS 2013, 622 MB)
    Visual Studio Add-in 1.2.3 for Qt5

    today and am using

    Microsoft Visual Studio Ultimate 2013
    Version 12.0.30501.00 Update 2

    In Windows 8.1 Pro 64 bit operating system

    I was able to fix the first error I received (forgot what it was) by
    Going to

    QT5 -> 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.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Just an educated guess, is your project configured for x86 rather than x64 ?



  • BUILD -> Configuration Manager
    Active solution platform (change to x64)
    Platform (change to x64)
    for
    Configuration -> Debug
    Configuration -> Release
    seemed to clear this up.



  • [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?


  • Moderators

    [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.



  • if you are using Qt Creator

    Select Build--->open Build and Run kit selector

    then choose Desktop Qt 5.4.0 MSVC2013 64bit



  • if you are using Qt Creator

    Select Build--->open Build and Run kit selector

    then choose Desktop Qt 5.4.0 MSVC2013 64bit


  • Banned

    This post is deleted!

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.