Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  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++ Gurus
1 Posts 1 Posters 2.6k 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.
  • B Offline
    B Offline
    benhaim
    wrote on last edited by
    #1

    I am using qt creator on windows with cmake

    I choose the NMake generator VS 2010. It seems that i never get it to link without the error

    module machine type 'X86' conflicts with target machine type 'x64' if i set

    set(CMAKE_EXE_LINKER_FLAGS "/MACHINE:X64")
    set(CMAKE_MODULE_LINKER_FLAGS "/MACHINE:X64")
    set(CMAKE_SHARED_LINKER_FLAGS "/MACHINE:X64")

    It somtime switches the error.

    How do you force to compile with 64 bits and make sure that all are in 64 bits

    If i run with Visual c++ 2010 generator outside of qt it doens give me the error

    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