Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Error 2 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 5 Posters 15.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogo_sort
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bogo_sort
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bogo_sort
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

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

            (Z(:^

            1 Reply Last reply
            0
            • IamSumitI Offline
              IamSumitI Offline
              IamSumit
              wrote on last edited by
              #6

              if you are using Qt Creator

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

              then choose Desktop Qt 5.4.0 MSVC2013 64bit

              Be Cute

              1 Reply Last reply
              0
              • IamSumitI Offline
                IamSumitI Offline
                IamSumit
                wrote on last edited by
                #7

                if you are using Qt Creator

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

                then choose Desktop Qt 5.4.0 MSVC2013 64bit

                Be Cute

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved