Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. module machine type 'X86' conflicts with target machine type 'x64'

module machine type 'X86' conflicts with target machine type 'x64'

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++question
13 Posts 5 Posters 0 Views 1 Watching
  • 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.
  • G Gopal_Kanchana

    Hi My machine is 32bit windows xp. I have done done configuration x64 in Active solution configuration earlier. but still i am getting same error Regards Gopal

    T Offline
    T Offline
    theCPkid
    wrote on last edited by
    #4

    for 32 bit, your platform should be x86. make sure to set it as active. if you still get the above error, then good luck! :)

    1 Reply Last reply
    0
    • G Gopal_Kanchana

      Hi My machine is 32bit windows xp. I have done done configuration x64 in Active solution configuration earlier. but still i am getting same error Regards Gopal

      T Offline
      T Offline
      theCPkid
      wrote on last edited by
      #5

      There's another option properties->configuration properties ->Linker->Advanced->Target Machine. :)

      G 1 Reply Last reply
      0
      • T theCPkid

        There's another option properties->configuration properties ->Linker->Advanced->Target Machine. :)

        G Offline
        G Offline
        Gopal_Kanchana
        wrote on last edited by
        #6

        Hi I changed Target machine into MachineX64 (/MACHINE:X64). even then still i am getting error. Any thing needs to upgrade for 64bit

        T 1 Reply Last reply
        0
        • G Gopal_Kanchana

          Hi I changed Target machine into MachineX64 (/MACHINE:X64). even then still i am getting error. Any thing needs to upgrade for 64bit

          T Offline
          T Offline
          theCPkid
          wrote on last edited by
          #7

          Try changing to x86 everywhere. :)

          G 1 Reply Last reply
          0
          • T theCPkid

            Try changing to x86 everywhere. :)

            G Offline
            G Offline
            Gopal_Kanchana
            wrote on last edited by
            #8

            if change into x86 build works. but i want to build it as 64bit

            T 1 Reply Last reply
            0
            • G Gopal_Kanchana

              if change into x86 build works. but i want to build it as 64bit

              T Offline
              T Offline
              theCPkid
              wrote on last edited by
              #9

              now that's an interesting piece of information. AFAIK, module machine type is the one mentioned in the active solution configuration and target machine type inside linker options. if they do not match, then I get the same error as mentioned by you.

              G 1 Reply Last reply
              0
              • T theCPkid

                now that's an interesting piece of information. AFAIK, module machine type is the one mentioned in the active solution configuration and target machine type inside linker options. if they do not match, then I get the same error as mentioned by you.

                G Offline
                G Offline
                Gopal_Kanchana
                wrote on last edited by
                #10

                In my system active solution configuration ->Release,Platform->x64 and target machine ->MachineX64 (/MACHINE:X64). every thing is same but why it's not building

                1 Reply Last reply
                0
                • G Gopal_Kanchana

                  Hi I am getting below error while compiling the my source code in VC++(Win32). But the same code get complied in another machine. i don't know why? fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' if provide me the step great help full regards gopal

                  B Offline
                  B Offline
                  barryboy
                  wrote on last edited by
                  #11

                  check ure static linking.....the .lib files may be of x86 and the dll u use might be a 64 bit..

                  1 Reply Last reply
                  0
                  • G Gopal_Kanchana

                    Hi I am getting below error while compiling the my source code in VC++(Win32). But the same code get complied in another machine. i don't know why? fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' if provide me the step great help full regards gopal

                    T Offline
                    T Offline
                    Thomas Mielke
                    wrote on last edited by
                    #12

                    Make sure every occurence of .\Release in the x64 properties is set to .\x64\Release. This seems to be a problem with projects converted from older versions of Visual Studio. At least this worked for me...

                    1 Reply Last reply
                    0
                    • G Gopal_Kanchana

                      Hi I am getting below error while compiling the my source code in VC++(Win32). But the same code get complied in another machine. i don't know why? fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' if provide me the step great help full regards gopal

                      N Offline
                      N Offline
                      Nisamudheen
                      wrote on last edited by
                      #13

                      Hi I faced the same problem. I assume the following in your case. 1 The module that your are building is a 64 bit binary. 2 You are trying to link your module with a 64 bit library. If above is the case, then you need to define an x64 Platform using the Configuration manager. Select the New option. In my case above was the problem and after defining a new configuration for x64, the problem is solved. Regards Nisam

                      "Silence will create respect and dignity; justice and fair play will bring more friends; benevolence and charity will enhance prestige and position; courtesy will draw benevolence; service of mankind will secure leadership and good words will overcome powerful enemies" Ali (Peace be upon him)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups