Home  >  Q&A  >  body text

c++ - error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突

最近用QT(界面)+VS2013(IDE)+opencv(图像识别) 做一个项目 ,遇到error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突;网上 查找了好多方法都无效,遇到过此类问题的希望能赐教;

天蓬老师天蓬老师2714 days ago747

reply all(4)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 14:43:57

    Just one point: x86 is 32-bit and x64 is 64-bit.

    Please use a 64-bit library or compile this project to 32-bit.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 14:43:57

    The project uses x64, and all libs and dlls must be compiled in the same compilation environment.
    Here, you need the lib library and opencv library compiled by vs13.
    Project settings should be set to X64.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:43:57

    The library version is wrong. When linking, it prompts that if necessary, to compile a 32-bit program, use a 32-bit lib, and to compile a 64-bit program, use a 64-bit lib.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 14:43:57

    When configuring the link library, it was set to 32

    reply
    0
  • Cancelreply